--- kind: Job name: worker runtime: one_of: process command: /usr/bin/python3 /opt/orca/jobs/worker.py timeout: 300s env: QUEUE_URL: unix:///run/orca/alloc-worker/queue.sock BATCH_SIZE: "100" LOG_LEVEL: debug lifecycle: post_start: - /usr/local/bin/register-worker.sh pre_stop: - /usr/local/bin/drain-queue.sh --- # Worker One-shot batch worker that processes items from a queue. Runs once, exits on completion or after 300s timeout. Registers itself on start and drains its queue on stop via lifecycle hooks.