zibri
    Preparing search index...

    Interface for a cron service.

    interface CronServiceInterface {
        changeCron: (name: string, cron: string) => Promise<void>;
        cronJobs: CronJob[];
        disable: (name: string) => Promise<void>;
        enable: (name: string) => Promise<void>;
        init: (cronJobs: Newable<CronJob>[]) => Promise<void>;
        schedule: (cronJob: CronJob) => Promise<void>;
        update: (name: string, data: CronUpdateData) => Promise<void>;
    }

    Implemented by

    Index

    Properties

    changeCron: (name: string, cron: string) => Promise<void>

    Changes the cron expression of the cron job with the given name.

    cronJobs: CronJob[]

    The cron jobs that are registered.

    disable: (name: string) => Promise<void>

    Disables the cron job with the given name.

    enable: (name: string) => Promise<void>

    Enables the cron job with the given name.

    init: (cronJobs: Newable<CronJob>[]) => Promise<void>

    Initializes all cron jobs.

    schedule: (cronJob: CronJob) => Promise<void>

    Schedules the given cron job.

    update: (name: string, data: CronUpdateData) => Promise<void>

    Updates the cron job with the given name.