From c475700cdd15da99fa8e56bef41a2193a6257d8b Mon Sep 17 00:00:00 2001 From: simon Date: Wed, 8 Dec 2021 16:15:25 +0700 Subject: [PATCH] store beat schedule on volume --- run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 827d109..514f5d8 100644 --- a/run.sh +++ b/run.sh @@ -36,5 +36,6 @@ export DJANGO_SUPERUSER_PASSWORD=$TA_PASSWORD && \ python manage.py collectstatic --noinput -c nginx & celery -A home.tasks worker --loglevel=INFO & -celery -A home beat --loglevel=INFO & +celery -A home beat --loglevel=INFO \ + -s "${BEAT_SCHEDULE_PATH:-/cache/celerybeat-schedule}" & uwsgi --ini uwsgi.ini