Developer Center

Worker

Add workers components to a service to run background processes for processing.

Worker components

Worker components let you deploy long lived background workers.

We are adding support for build packs soon.

Minimum config

A minimum worker config consists of:

components:
  - type: worker
    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 deployment
  • kubernetes pod autoscaler