From c1b819b624cdf909962d9ccf444ec33c2681143c Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Tue, 12 Mar 2024 10:12:54 +0000 Subject: [PATCH] Add crond in background --- ckan/setup/start_ckan.sh.override | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckan/setup/start_ckan.sh.override b/ckan/setup/start_ckan.sh.override index 84656952..fe1c5c4a 100644 --- a/ckan/setup/start_ckan.sh.override +++ b/ckan/setup/start_ckan.sh.override @@ -59,6 +59,9 @@ then crontab -l | { cat; echo "*/15 * * * * /usr/bin/supervisorctl start ckan_harvester_run"; } | crontab - ## Clean-up mechanism for the harvest log table. 'ckan.harvest.log_timeframe'. The default time frame is 30 days crontab -l | { cat; echo "0 5 */30 * * /usr/bin/supervisorctl start ckan_harvester_clean_log"; } | crontab - + ## Execute cron in the background + echo "[prerun.workers] Execute cron in the background" + crond -b -l 8 # Start uwsgi uwsgi $UWSGI_OPTS