Creates a decorator @Cron("...") to create a cron task.
The cron schedule in string format.
The following code creates a Cronjob that is executed every hour.
@Cron("0 * * * *")async runTask() { // run scheduled tasks} Copy
@Cron("0 * * * *")async runTask() { // run scheduled tasks}
Generated using TypeDoc
Creates a decorator @Cron("...") to create a cron task.