Worker Process Management¶
The worker process sub-app provides fine-grained control over multiple background worker instances.
Process Lifecycle¶
Start Multiple Instances¶
Start several worker instances at once, each with its own hostname:
| Start 4 worker instances | |
|---|---|
| With specific queues and concurrency | |
|---|---|
Start Flags¶
| Flag | Description |
|---|---|
--count N |
Number of worker instances to start (default: 1) |
--queues / -Q |
Comma-separated list of queues |
--concurrency N |
Child processes per worker instance |
--detach / -d |
Run workers as background processes |
Stop All Workers¶
Gracefully shut down all running worker processes:
Restart All Workers¶
Stop and then restart all worker processes — applies code changes without server downtime:
Monitoring & Logs¶
Status Table¶
See a detailed table of running worker processes including their PIDs, uptime, and resource usage:
Worker Logs¶
Tail the logs for worker processes:
| Follow worker logs | |
|---|---|
Background Processes
The status and logs commands are most useful when workers are started with --detach, since stdout is not visible directly.