Running Queue Workers
Starting a Worker
Basic Usage
# Process jobs from 'default' queue
python main.py --queue-work
# Or using the routemq command
routemq --queue-workWorker Options
--queue
--connection
--max-jobs
--max-time
--sleep
--max-tries
--timeout
Multiple Workers
Production Deployment
Using Docker Compose
Using Supervisor
Using systemd
Worker Lifecycle
Graceful Shutdown
Monitoring Workers
View Worker Output
Check Queue Size
Monitor with Redis CLI
Monitor with MySQL
Troubleshooting
Worker Not Processing Jobs
Jobs Timing Out
High Memory Usage
Worker Stuck
Best Practices
1. Run Multiple Workers
2. Use Different Queues
3. Set Resource Limits
4. Log Everything
5. Monitor Queue Depth
Next Steps
Last updated