Add crond in background

This commit is contained in:
mjanez 2024-03-12 10:12:54 +00:00 committed by GitHub
parent 4c6e6bd63b
commit c1b819b624
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -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