supervisor - how to run multiple commands supervisor - how to run multiple commands python python

supervisor - how to run multiple commands


Add a second section with a different task name. If two tasks have the same task name, the latter overwrites the former.

[program:celeryb]command = /var/worker/venv/bin/celery worker -A b_report_tasks -Q b_report_process --loglevel=INFOdirectory=/var/workeruser=nobodynumprocs=1autostart=trueautorestart=truestartsecs=10stopwaitsecs = 60stdout_logfile=/var/log/celery/worker.logstderr_logfile=/var/log/celery/worker.logkillasgroup=truepriority=998

You can also group them so both tasks get restarted as a group:

[group:celery-workers]programs=celery,celerybpriority=999