Skip to content

Commit

Permalink
Add crond in background
Browse files Browse the repository at this point in the history
  • Loading branch information
mjanez authored Mar 12, 2024
1 parent 4c6e6bd commit c1b819b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/setup/start_ckan.sh.override
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1b819b

Please sign in to comment.