-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh: include DCOR worker configuration
- Loading branch information
1 parent
b012a55
commit bf6a90e
Showing
4 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
28 changes: 28 additions & 0 deletions
28
dcor_control/resources/config/etc_supervisor_conf.d_ckan-worker-dcor.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[program:ckan-worker-{{QUEUE}}] | ||
|
||
environment=CKAN_INI=/etc/ckan/default/ckan.ini,PYTHONUNBUFFERED=1 | ||
command=/usr/lib/ckan/default/bin/ckan -c /etc/ckan/default/ckan.ini jobs worker {{QUEUE}} | ||
|
||
user=www-data | ||
|
||
; 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-{{QUEUE}}.stdout.log | ||
stderr_logfile=/var/log/ckan/ckan-worker-{{QUEUE}}.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=60 |