Debian Codegraph @

extra/supervisord/celeryd.conf

raw
1 ; ==================================
2 ; celery worker supervisor example
3 ; ==================================
4
5 [program:celery]
6 ; Directory should become before command
7 directory=/path/to/project
8
9 user=nobody
10 numprocs=1
11 stdout_logfile=/var/log/celery/worker.log
12 stderr_logfile=/var/log/celery/worker.log
13 autostart=true
14 autorestart=true
15 startsecs=10
16
17 ; Set full path to celery program if using virtualenv
18 command=celery -A proj worker --loglevel=INFO
19
20 ; Alternatively,
21 ;command=celery --app=your_app.celery:app worker --loglevel=INFO -n worker.%%h
22 ; Or run a script
23 ;command=celery.sh
24
25 ; Need to wait for currently executing tasks to finish at shutdown.
26 ; Increase this if you have very long running tasks.
27 stopwaitsecs = 600
28
29 ; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
30 stopasgroup=true
31
32 ; Set Celery priority higher than default (999)
33 ; so, if rabbitmq is supervised, it will start first.
34 priority=1000