mirror of https://github.com/apache/superset.git
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:
parent
17e79ace79
commit
19a94009b0
|
@ -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..."
|
||||
|
|
Loading…
Reference in New Issue