Skip to content

Commit

Permalink
Added supervisor-ckan-worker.conf config file
Browse files Browse the repository at this point in the history
  • Loading branch information
twdbben committed Dec 10, 2024
1 parent 0ea4d80 commit 56f141d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docker/ckan/supervisor-ckan-worker.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
; =======================================================
; 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]

; Use the full paths to the virtualenv and your configuration file here.
; command=/usr/lib/ckan/default/bin/ckan -c /etc/ckan/default/ckan.ini jobs worker
command=/srv/app/virtualenv/bin/ckan -c production.ini jobs worker


; User the worker runs as.
; user=www-data
user=ckan


; Start just a single worker. Increase this number if you have many or
; particularly long running background jobs.
numprocs=1
process_name=%(program_name)s-%(process_num)02d


; Log files.
stdout_logfile=/var/log/ckan/ckan-worker.stdout.log
stderr_logfile=/var/log/ckan/ckan-worker.stderr.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

0 comments on commit 56f141d

Please sign in to comment.