scheduledTask
scheduledTask(
ism
):ScheduledTask
Creates a scheduled task that can be executed at specified intervals using cron patterns
Parameters
• ism: ScheduledTask
The scheduled task configuration object
Returns
The configured scheduled task
Example
Remarks
- Tasks must be placed in the ‘tasks’ directory specified in your config
- The file name serves as a unique identifier for the task
- Tasks can be cancelled using deps[‘@sern/scheduler’].kill(uuid)
See
https://crontab.guru/ for testing and creating cron patterns