Interface JobConfig

Job configuration spec.

Hierarchy

  • JobConfig

Properties

cron: string

Job schedule in the Linux crontab syntax.

dontAutoRun?: boolean

If true, the job will not be started automatically.

Default

false

Logger object to use for logging.

onError?: ((err) => void)

Type declaration

    • (err): void
    • Function to execute when an error occurs.

      Parameters

      • err: Error

        Error object.

      Returns void

onTick: ((job) => Promise<void>)

Type declaration

    • (job): Promise<void>
    • Function to execute each iteration of this job.

      Parameters

      • job: Job

        Job object.

      Returns Promise<void>

Generated using TypeDoc