Skip to content

Commit

Permalink
fix: Fixes #24391 (Problems with celery beat running with docker when…
Browse files Browse the repository at this point in the history
… the machine is rebooted suddenly) (#24392)

Co-authored-by: Alvaro Olmedo <[email protected]>
  • Loading branch information
alvarolmedo and Alvaro Olmedo committed Jun 14, 2023
1 parent 17e79ac commit 19a9400
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker/docker-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down

0 comments on commit 19a9400

Please sign in to comment.