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
This commit is contained in:
Matthew Jones 2016-05-09 11:35:54 -04:00
parent 3fe7006697
commit dad72e297c

View File

@ -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: