Class Cron

A cron instance.

Hierarchy

  • Cron

Constructors

Methods

  • Create a new job.

    Parameters

    • name: string

      Unique job name.

    • job: JobConfig

      Job configuration.

    Returns Job

    Job object.

  • Delete all jobs.

    Returns void

  • Delete a job by name.

    Parameters

    • name: string

      Job name.

    Returns void

  • Get all jobs.

    Returns Job[]

    Array of all jobs.

  • Get a job by name.

    Parameters

    • name: string

      Job name.

    Returns undefined | Job

    Job object.

  • Shutdown the cron instance.

    Returns void

Generated using TypeDoc