io.registerCron()
io.registerCron()
allows you to register a DynamicSchedule that will trigger any jobs it’s attached to on a regular CRON schedule.
This has been deprecated in favor of DynamicSchedule.register
Parameters
Should be a stable and unique cache key inside the run()
. See
resumability for more information.
A DynamicSchedule that will trigger any Jobs it’s attached to on a regular interval.
A unique id for the schedule. This is used to identify and unregister the schedule later.
An object containing options about the interval.
Returns
A Promise that resolves to an object with the following fields:
A unique id for the interval. This is used to identify and unregister the interval later.
Any additional metadata about the interval.
This will be used by the Trigger.dev Connect feature, which is coming soon.
Was this page helpful?