You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2023/06/14 20:38:04 UTC

[superset] branch master updated: fix: Fixes #24391 (Problems with celery beat running with docker when the machine is rebooted suddenly) (#24392)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 19a94009b0 fix: Fixes #24391 (Problems with celery beat running with docker when the machine is rebooted suddenly) (#24392)
19a94009b0 is described below

commit 19a94009b0ef532d8e3b09a15f63ef068135aa0b
Author: Alvaro Olmedo Rodriguez <al...@users.noreply.github.com>
AuthorDate: Wed Jun 14 22:37:55 2023 +0200

    fix: Fixes #24391 (Problems with celery beat running with docker when the machine is rebooted suddenly) (#24392)
    
    Co-authored-by: Alvaro Olmedo <al...@datadope.io>
---
 docker/docker-bootstrap.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docker/docker-bootstrap.sh b/docker/docker-bootstrap.sh
index 0784a0fdf2..6b92e97002 100755
--- a/docker/docker-bootstrap.sh
+++ b/docker/docker-bootstrap.sh
@@ -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..."