Skip to content

Worker Entrypoint

path: /src/entrypoints/worker.ts

Usage

This entrypoint accepts arguments to start a worker process.

  • --queue <name> (required): The name of the queue to process.
  • --concurrency <number>: The number of concurrent jobs to process.
  • --interval <number>: The interval in milliseconds to check for new jobs.

Running locally

bash
pnpm start:dev worker -- --queue=system --concurrency=5 --interval=1000

Adding a new job

See jobs for more information.