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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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..."