File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ CELERY__WORKER_CONCURRENCY=${CELERY__WORKER_CONCURRENCY:-"4"}
1616
1717# Celery beat settings
1818CELERY__BEAT_SCHEDULE=${CELERY__BEAT_SCHEDULE:- " celery.beat:PersistentScheduler" }
19+ CELERY__BEAT_DB=${CELERY__BEAT_DB:- " /mnt/volumes/statics/celerybeat-schedule" }
1920CELERY__BEAT_LOG=${CELERY__BEAT_LOG:- " /var/log/celery_beat.log" }
2021
2122# Harvester settings
4344
4445echo " Starting Celery Beat..."
4546$CELERY_BIN -A $CELERY_APP beat --scheduler=$CELERY__BEAT_SCHEDULE \
47+ --schedule=$CELERY__BEAT_DB \
4648 --loglevel=$CELERY__LOG_LEVEL -f $CELERY__BEAT_LOG --pidfile=/tmp/celerybeat.pid &
4749
4850echo " Starting Default Celery Worker..."
@@ -67,4 +69,4 @@ wait -n
6769
6870# Exit with the status of the process that exited first
6971# Docker will restart the container if this is non-zero (i.e., a failure)
70- exit $?
72+ exit $?
You can’t perform that action at this time.
0 commit comments