• 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 minutes
    cronAdd("hello", "*/30 * * * *", () => {
    console.log("Hello world!")
    })

    Note that this method is available only in pb_hooks context.

    Parameters

    • jobId: string
    • cronExpr: string
    • handler: (() => void)
        • (): void
        • Returns void

    Returns void

Generated using TypeDoc