fix: Fixes #24391 (Problems with celery beat running with docker when the machine is rebooted suddenly) (#24392)

Co-authored-by: Alvaro Olmedo <alvaro.olmedo@datadope.io>
This commit is contained in:
Alvaro Olmedo Rodriguez
2023-06-14 22:37:55 +02:00
committed by GitHub
parent 17e79ace79
commit 19a94009b0

View File

@@ -40,6 +40,7 @@ if [[ "${1}" == "worker" ]]; then
celery --app=superset.tasks.celery_app:app worker -O fair -l INFO
elif [[ "${1}" == "beat" ]]; then
echo "Starting Celery beat..."
rm -f /tmp/celerybeat.pid
celery --app=superset.tasks.celery_app:app beat --pidfile /tmp/celerybeat.pid -l INFO -s "${SUPERSET_HOME}"/celerybeat-schedule
elif [[ "${1}" == "app" ]]; then
echo "Starting web app..."