library/roles/ckan: Add a variable to store the supervisor fetch and gather app names.

d4science-ghn-cluster/roles/ckan: Add a handler to restart the gather and fetcher processes. See https://support.d4science.org/issues/7028
This commit is contained in:
Andrea Dell'Amico 2017-02-09 12:16:37 +01:00
parent 1d67e721d0
commit 70d8e79776
2 changed files with 5 additions and 1 deletions

View File

@ -146,3 +146,7 @@ ckan_production_ini_plugins_opts:
ckan_gather_fetch_pkgs: ckan_gather_fetch_pkgs:
- supervisor - supervisor
ckan_gather_fetch_apps:
- ckan_gather_consumer
- ckan_fetch_consumer

View File

@ -7,7 +7,7 @@
command={{ ckan_virtenv }}/bin/paster --plugin=ckanext-harvest harvester gather_consumer --config={{ ckan_config_file }} command={{ ckan_virtenv }}/bin/paster --plugin=ckanext-harvest harvester gather_consumer --config={{ ckan_config_file }}
; user that owns virtual environment. ; user that owns virtual environment.
user=ckan user={{ ckan_shell_user }}
numprocs=1 numprocs=1
stdout_logfile={{ ckan_logdir }}/gather_consumer.log stdout_logfile={{ ckan_logdir }}/gather_consumer.log