| author | ymh <ymh.work@gmail.com> |
| Fri, 24 Jan 2020 16:49:22 +0100 | |
| branch | documentation |
| changeset 701 | bf0820deea40 |
| parent 686 | 385e3a12ee27 |
| permissions | -rw-r--r-- |
|
686
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
[program:celeryd-hdalab] |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
; Set full path to celery program if using virtualenv |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
command=/usr/local/bin/celery worker -A hdalab --loglevel=INFO |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
directory=/var/lib/hdalab |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
user=www |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
numprocs=1 |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
stdout_logfile=/var/log/hdalab/celery/hdalab-worker.log |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
stderr_logfile=/var/log/hdalab/celery/hdalab-worker.log |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
autostart=true |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
autorestart=true |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
startsecs=10 |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
; Need to wait for currently executing tasks to finish at shutdown. |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
; Increase this if you have very long running tasks. |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
stopwaitsecs = 600 |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
; When resorting to send SIGKILL to the program to terminate it |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
19 |
; send SIGKILL to its whole process group instead, |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
20 |
; taking care of its children as well. |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
21 |
killasgroup=true |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
22 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
23 |
; if rabbitmq is supervised, set its priority higher |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
24 |
; so it starts first |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
25 |
priority=998 |