Skip to content

Commit

Permalink
Unpin Celery and upgrade to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Oct 19, 2020
1 parent 3c15808 commit 74444c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion {{ cookiecutter.project_slug }}/Procfile
@@ -1,3 +1,3 @@
release: ./manage.py migrate
web: gunicorn --bind 0.0.0.0:$PORT {{ cookiecutter.pkg_name }}.wsgi
worker: REMAP_SIGTERM=SIGQUIT celery worker --app {{ cookiecutter.pkg_name }}.celery --loglevel info --without-heartbeat
worker: REMAP_SIGTERM=SIGQUIT celery --app {{ cookiecutter.pkg_name }}.celery worker --loglevel INFO --without-heartbeat
2 changes: 1 addition & 1 deletion {{ cookiecutter.project_slug }}/README.md
Expand Up @@ -42,7 +42,7 @@ but allows developers to run Python code on their native system.
2. `./manage.py runserver`
3. Run in a separate terminal:
1. `source ./dev/source-native-env.sh`
2. `celery worker --app {{ cookiecutter.pkg_name }}.celery --loglevel info --without-heartbeat`
2. `celery --app {{ cookiecutter.pkg_name }}.celery worker --loglevel INFO --without-heartbeat`
4. When finished, run `docker-compose stop`

## Remap Service Ports (optional)
Expand Down
5 changes: 3 additions & 2 deletions {{ cookiecutter.project_slug }}/docker-compose.override.yml
Expand Up @@ -22,9 +22,10 @@ services:
context: .
dockerfile: ./dev/django.Dockerfile
command: [
"celery", "worker",
"celery",
"--app", "{{ cookiecutter.pkg_name }}.celery",
"--loglevel", "info",
"worker",
"--loglevel", "INFO",
"--without-heartbeat"
]
# Docker Compose does not set the TTY width, which causes Celery errors
Expand Down
2 changes: 1 addition & 1 deletion {{ cookiecutter.project_slug }}/setup.py
Expand Up @@ -35,7 +35,7 @@
python_requires='>=3.8',
packages=find_packages(),
install_requires=[
'celery<5',
'celery',
'django',
'django-admin-display',
'django-allauth',
Expand Down

0 comments on commit 74444c3

Please sign in to comment.