mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-01-26 09:14:30 +03:00
Merge pull request #3280 from pydanny/update/celery-5
This commit is contained in:
commit
9a5fcf68bf
|
@ -5,6 +5,6 @@ web: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker
|
|||
web: gunicorn config.wsgi:application
|
||||
{%- endif %}
|
||||
{% if cookiecutter.use_celery == "y" -%}
|
||||
worker: REMAP_SIGTERM=SIGQUIT celery worker --app=config.celery_app --loglevel=info
|
||||
beat: REMAP_SIGTERM=SIGQUIT celery beat --app=config.celery_app --loglevel=info
|
||||
worker: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app worker --loglevel=info
|
||||
beat: REMAP_SIGTERM=SIGQUIT celery -A config.celery_app beat --loglevel=info
|
||||
{%- endif %}
|
||||
|
|
|
@ -4,7 +4,8 @@ set -o errexit
|
|||
set -o nounset
|
||||
|
||||
|
||||
celery flower \
|
||||
--app=config.celery_app \
|
||||
--broker="${CELERY_BROKER_URL}" \
|
||||
celery \
|
||||
-A config.celery_app \
|
||||
-b "${CELERY_BROKER_URL}" \
|
||||
flower \
|
||||
--basic_auth="${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}"
|
||||
|
|
|
@ -4,7 +4,8 @@ set -o errexit
|
|||
set -o nounset
|
||||
|
||||
|
||||
celery flower \
|
||||
--app=config.celery_app \
|
||||
--broker="${CELERY_BROKER_URL}" \
|
||||
celery \
|
||||
-A config.celery_app \
|
||||
-b "${CELERY_BROKER_URL}" \
|
||||
flower \
|
||||
--basic_auth="${CELERY_FLOWER_USER}:${CELERY_FLOWER_PASSWORD}"
|
||||
|
|
|
@ -17,10 +17,10 @@ redis==3.5.3 # https://github.com/andymccurdy/redis-py
|
|||
hiredis==2.0.0 # https://github.com/redis/hiredis-py
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_celery == "y" %}
|
||||
celery==4.4.6 # pyup: < 5.0,!=4.4.7 # https://github.com/celery/celery
|
||||
django-celery-beat==2.2.0 # https://github.com/celery/django-celery-beat
|
||||
celery==5.1.2 # pyup: < 6.0 # https://github.com/celery/celery
|
||||
django-celery-beat==2.2.1 # https://github.com/celery/django-celery-beat
|
||||
{%- if cookiecutter.use_docker == 'y' %}
|
||||
flower==0.9.7 # https://github.com/mher/flower
|
||||
flower==1.0.0 # https://github.com/mher/flower
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- if cookiecutter.use_async == 'y' %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user