Sometimes you want to create a Job but define multiple different schedules that will Trigger it at runtime.Documentation Index
Fetch the complete documentation index at: https://trigger-v3-fix-additional-files.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Constructor
DynamicSchedule()
Creates a new DynamicSchedule.Instance methods
register()
Use this method to register a new schedule with the DynamicSchedule.unregister()
Use this method to unregister a schedule from the DynamicSchedule, using the id you used when registering it.Example use cases:
You want your users to be able to define their own schedule
- Create a
DynamicSchedule. - Create a Job that will be triggered by the
DynamicSchedule. - Anywhere in your codebase you can now call
yourDynamicSchedule.registerto add a new schedule. You should use your user’s userId when registering. - When the Job runs you can check the
context.source.idto see which user triggered it.

