From dad72e297cac08da319602d1ac0dc7c871f4b70a Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 9 May 2016 11:35:54 -0400 Subject: [PATCH] Update the default path for celerybeat-schedule If the celerybeat database becomes corrupt then it can prevent starting some services for Tower. This happens in an obscure way and currently that database is stored at the top of the source tree. This moves it into the container managed space so that failure scenario won't persist if the container is re-created --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1e967d88d5..a1f0cdbf21 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD) VENV_BASE ?= /tower_devel/venv SCL_PREFIX ?= +CELERY_SCHEDULE_FILE ?= /celerybeat-schedule CLIENT_TEST_DIR ?= build_test @@ -396,7 +397,7 @@ celeryd: @if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/tower/bin/activate; \ fi; \ - $(PYTHON) manage.py celeryd -l DEBUG -B --autoscale=20,2 -Ofair + $(PYTHON) manage.py celeryd -l DEBUG -B --autoscale=20,2 -Ofair --schedule=$(CELERY_SCHEDULE_FILE) # Run to start the zeromq callback receiver receiver: