repo inicializado
This commit is contained in:
22
arches/conf.d/arches_proj-celerybeat.conf
Normal file
22
arches/conf.d/arches_proj-celerybeat.conf
Normal file
@@ -0,0 +1,22 @@
|
||||
; ================================
|
||||
; celery beat supervisor
|
||||
; ================================
|
||||
|
||||
[program:celerybeat]
|
||||
command=python -m celery -A arches_proj.celery beat --schedule=/tmp/celerybeat-schedule --loglevel=INFO --pidfile=/tmp/celerybeat.pid
|
||||
directory=/arches_app/arches_proj
|
||||
|
||||
user=root
|
||||
numprocs=1
|
||||
stdout_logfile=/var/log/celery/beat.log
|
||||
stderr_logfile=/var/log/celery/beat.log
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=10
|
||||
|
||||
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
|
||||
stopasgroup=true
|
||||
|
||||
; if rabbitmq is supervised, set its priority higher
|
||||
; so it starts first
|
||||
priority=999
|
||||
26
arches/conf.d/arches_proj-celeryd.conf
Normal file
26
arches/conf.d/arches_proj-celeryd.conf
Normal file
@@ -0,0 +1,26 @@
|
||||
; ==================================
|
||||
; celery worker supervisor
|
||||
; ==================================
|
||||
|
||||
[program:celery]
|
||||
command=python -m celery -A arches_proj worker -l INFO
|
||||
directory=/arches_app/arches_proj
|
||||
|
||||
user=root
|
||||
numprocs=1
|
||||
stdout_logfile=/var/log/celery/worker.log
|
||||
stderr_logfile=/var/log/celery/worker.log
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=10
|
||||
|
||||
; Need to wait for currently executing tasks to finish at shutdown.
|
||||
; Increase this if you have very long running tasks.
|
||||
stopwaitsecs = 600
|
||||
|
||||
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
|
||||
stopasgroup=true
|
||||
|
||||
; Set Celery priority higher than default (999)
|
||||
; so, if rabbitmq is supervised, it will start first.
|
||||
priority=1000
|
||||
Reference in New Issue
Block a user