docker-ckan/images/ckan/2.10/supervisorvalidation.conf

54 lines
2.0 KiB
Plaintext
Raw Normal View History

; =======================================================
; Supervisor configuration for CKAN background job worker
; =======================================================
; 1. Copy this file to /etc/supervisor/conf.d
; 2. Make sure the paths below match your setup
[program:ckan-worker-default]
command=ckan -c /srv/app/production.ini jobs worker default
; Log files.
redirect_stderr=true
stdout_logfile=/var/log/ckan/ckan-worker.log
; Make sure that the worker is started on system start and automatically
; restarted if it crashes unexpectedly.
autostart=true
autorestart=true
; Number of seconds the process has to run before it is considered to have
; started successfully.
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
[program:ckan-worker-bulk]
command=ckan -c /srv/app/production.ini jobs worker bulk
; Log files.
redirect_stderr=true
stdout_logfile=/var/log/ckan/ckan-worker.log
; Make sure that the worker is started on system start and automatically
; restarted if it crashes unexpectedly.
autostart=true
autorestart=true
; Number of seconds the process has to run before it is considered to have
; started successfully.
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600
[program:ckan-worker-priority]
command=ckan -c /srv/app/production.ini jobs worker priority
numprocs=2
process_name=%(program_name)s-%(process_num)02d
; Log files.
redirect_stderr=true
stdout_logfile=/var/log/ckan/ckan-worker.log
; Make sure that the worker is started on system start and automatically
; restarted if it crashes unexpectedly.
autostart=true
autorestart=true
; Number of seconds the process has to run before it is considered to have
; started successfully.
startsecs=10
; Need to wait for currently executing tasks to finish at shutdown.
; Increase this if you have very long running tasks.
stopwaitsecs = 600