Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, fixing celery startup
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Aug 23, 2023
1 parent ef1ff77 commit 9ee0e05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion start_celery_beat.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -e
./wait_for_it.sh ${REDIS_HOST}:${REDIS_PORT} -t 0
./wait_for_it.sh ${API_HOST}:${API_PORT} -t 0 # Wait for API to run any DB migrations before running scheduled tasks

celery -A core.celery beat -l info -S django
celery -A core beat -l info -S django
2 changes: 1 addition & 1 deletion start_celery_worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ CELERY_WORKER_NAME_WITH_UUID="${CELERY_WORKER_NAME}-${UUID}"

echo "$CELERY_WORKER_NAME_WITH_UUID" > "/temp/celery-worker-$CELERY_WORKER_NAME.tmp"

celery -A core.celery worker -n $CELERY_WORKER_NAME_WITH_UUID --loglevel=INFO "$@" -E --without-heartbeat --without-gossip --without-mingle
celery -A core worker -n $CELERY_WORKER_NAME_WITH_UUID --loglevel=INFO "$@" -E --without-heartbeat --without-gossip --without-mingle
2 changes: 1 addition & 1 deletion start_flower.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ set -e

./wait_for_it.sh ${REDIS_HOST}:${REDIS_PORT} -t 0

celery -A core.celery flower --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD} --conf=flowerconfig.py
celery -A core flower --basic_auth=${FLOWER_USER}:${FLOWER_PASSWORD} --conf=flowerconfig.py

0 comments on commit 9ee0e05

Please sign in to comment.