CronAdd registers a new cron job.
If a cron job with the specified name already exist, it will be replaced with the new one.
Example:
// prints "Hello world!" on every 30 minutescronAdd("hello", "*/30 * * * *", () => { console.log("Hello world!")}) Copy
// prints "Hello world!" on every 30 minutescronAdd("hello", "*/30 * * * *", () => { console.log("Hello world!")})
Note that this method is available only in pb_hooks context.
Generated using TypeDoc
CronAdd registers a new cron job.
If a cron job with the specified name already exist, it will be replaced with the new one.
Example:
Note that this method is available only in pb_hooks context.