Define REMAP_SIGTERM=SIGQUIT on Profile of Celery

on Heroku
This commit is contained in:
Fábio C. Barrionuevo da Luz 2021-07-08 19:29:25 -03:00 committed by GitHub
parent 91f93fe371
commit 0aca0a8782
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
{%- endif %}
{%- if cookiecutter.use_celery == "y" -%}
worker: celery worker --app=config.celery_app --loglevel=info
beat: celery beat --app=config.celery_app --loglevel=info
worker: REMAP_SIGTERM=SIGQUIT celery worker --app=config.celery_app --loglevel=info
beat: REMAP_SIGTERM=SIGQUIT celery beat --app=config.celery_app --loglevel=info
{%- endif %}