Developer Center

Cron

Add cron components to run background jobs on a schedule.

Cron components

Cron components let you deploy long lived cron jobs to do background processing on a schedule.

Minimum config

A minimum cron config consists of:

components:
  - type: cron
    instances: 1 - 5
    cmd: /app/scripts/cmd

Fields

  • type: component type (required)
  • instances: number of container instances (required)
  • cmd: command to run inside the container to start the worker service (required)

Optional

Provisioned resources

Each worker component in a service provisions:

  • kubernetes scheduled job