Merge pull request #3263 from pydanny/luzfcb-celery-heroku-REMAP_SIGTERM

Define REMAP_SIGTERM=SIGQUIT on Profile of Celery on Heroku
This commit is contained in:
Fábio C. Barrionuevo da Luz 2021-07-12 10:56:52 -03:00 committed by GitHub
commit c91464c7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,6 @@ web: gunicorn config.asgi:application -k uvicorn.workers.UvicornWorker
web: gunicorn config.wsgi:application web: gunicorn config.wsgi:application
{%- endif %} {%- endif %}
{%- if cookiecutter.use_celery == "y" -%} {%- if cookiecutter.use_celery == "y" -%}
worker: celery worker --app=config.celery_app --loglevel=info worker: REMAP_SIGTERM=SIGQUIT celery worker --app=config.celery_app --loglevel=info
beat: celery beat --app=config.celery_app --loglevel=info beat: REMAP_SIGTERM=SIGQUIT celery beat --app=config.celery_app --loglevel=info
{%- endif %} {%- endif %}