| author | ymh <ymh.work@gmail.com> |
| Fri, 19 Jul 2024 09:38:03 +0200 | |
| changeset 704 | b5835dca2624 |
| 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:celerybeat-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 beat -A hdalab --schedule /var/lib/hdalab/celery/beat.db --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 |
; remove the -A myapp argument if you are not using an app instance |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
directory=/var/lib/hdalab |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
user=www |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
numprocs=1 |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
stdout_logfile=/var/log/hdalab/celery/hdalab-beat.log |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
stderr_logfile=/var/log/hdalab/celery/hdalab-beat.log |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
autostart=true |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
autorestart=true |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
startsecs=10 |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
|
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
; 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
|
17 |
; so it starts first |
|
385e3a12ee27
Containerization and various corrections to make it work
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
18 |
priority=999 |