Skip to content

Commit

Permalink
fix: Updated correct celery running command (#6733)
Browse files Browse the repository at this point in the history
  • Loading branch information
me-diru authored and iamareebjamal committed Jan 8, 2020
1 parent 95357f2 commit 3ea3814
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/installation/basic.md
Expand Up @@ -80,7 +80,7 @@ redis-3.2.1/src/redis-server &
export INTEGRATE_SOCKETIO=false
# socketio has problems with celery "blocking" tasks
# also socketio is not used in a celery task so no problem to turn it off
celery worker -A app.celery &
celery worker -A app.instance.celery &
unset INTEGRATE_SOCKETIO

# run app
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/local.md
Expand Up @@ -162,7 +162,7 @@ brew install redis
# Run Celery
# socketio has problems with celery "blocking" tasks
# also socketio is not used in a celery task so no problem to turn it off
INTEGRATE_SOCKETIO=false celery worker -A app.celery
INTEGRATE_SOCKETIO=false celery worker -A app.instance.celery
# run app
python3 manage.py runserver
Expand Down
2 changes: 1 addition & 1 deletion docs/installation/mac-os.md
Expand Up @@ -98,7 +98,7 @@ redis-3.2.1/src/redis-server &
export INTEGRATE_SOCKETIO=false
# socketio has problems with celery "blocking" tasks
# also socketio is not used in a celery task so no problem to turn it off
celery worker -A app.celery &
celery worker -A app.instance.celery &
unset INTEGRATE_SOCKETIO

# run app
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/run.sh
Expand Up @@ -15,5 +15,5 @@ if [ "$DEPLOYMENT" == "celery" ]
then
echo "[LOG] Starting celery worker"
export INTEGRATE_SOCKETIO=false
celery worker -A app.celery --loglevel=warning
celery worker -A app.instance.celery --loglevel=warning
fi
2 changes: 1 addition & 1 deletion scripts/container_start.sh
Expand Up @@ -24,5 +24,5 @@ then
echo "[LOG] Starting celery worker"
export INTEGRATE_SOCKETIO=false
export CELERY_LOG_LEVEL=${CELERY_LOG_LEVEL:-info}
celery worker -B -A app.celery --loglevel=$CELERY_LOG_LEVEL $CELERY_EXTRA_ARGS
celery worker -B -A app.instance.celery --loglevel=$CELERY_LOG_LEVEL $CELERY_EXTRA_ARGS
fi
2 changes: 1 addition & 1 deletion scripts/heroku.sh
Expand Up @@ -5,7 +5,7 @@ export INTEGRATE_SOCKETIO=false
# socketio has problems with celery "blocking" tasks
# also socketio is not used in a celery task so no problem to turn it off
chmod -R 0777 ./static
celery worker -A app.celery --loglevel=info &
celery worker -A app.instance.celery --loglevel=info &
if [ "$APP_CONFIG" = "config.DevelopmentConfig" ]; then
python manage.py runserver -h 0.0.0.0 -p ${PORT:-8000} --no-reload
else
Expand Down
2 changes: 1 addition & 1 deletion scripts/run.sh
Expand Up @@ -15,6 +15,6 @@ fi

redis-3.2.1/src/redis-server &
# run worker
celery worker -A app.celery &
celery worker -A app.instance.celery &
# run app
python3 manage.py runserver -h 0.0.0.0 -p 5000

0 comments on commit 3ea3814

Please sign in to comment.