Skip to main content
This has been deprecated in favor of DynamicTrigger.register

Parameters

string
required
Should be a stable and unique cache key inside the run(). See resumability for more information.
DynamicTrigger
required
A DynamicTrigger that will trigger any Jobs it’s attached.
string
required
A unique id for the registration. This is used to identify and unregister later.
object
required
The params for the DynamicTrigger. These will vary depending on the type of the DynamicTrigger.

Returns

A Promise that resolves to an object with the following fields:
string
required
A unique id for the registration. This is used to identify and unregister later.
string
required
The key of the registration.

Example