Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unpin Celery and upgrade to v5 #55

Merged
merged 1 commit into from Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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