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

Replace django-celery #872

Open
hackdna opened this issue Feb 8, 2016 · 3 comments
Open

Replace django-celery #872

hackdna opened this issue Feb 8, 2016 · 3 comments

Comments

@hackdna
Copy link
Member

hackdna commented Feb 8, 2016

Django supported out of the box in Celery 3.1.

  • Django is now supported in core and new Django users coming to Celery are now expected to use the new API directly (the same library, the same API and the same documentation as everyone else)
  • There is no rush to port your existing code to use the new API, but if you would like to experiment with it you should know that (see example project for details):
    • You need to use a Celery application instance
    • You need to explicitly integrate Celery with Django (either configure Celery separately or tell it to use the Django settings)
    • You no longer use manage.py (your app module must store the DJANGO_SETTINGS_MODULE) - need to change Supervisor config and Fabric
  • Some features still require the django-celery library:
    • Celery does not implement the Django database or cache result backends.
    • Celery does not ship with the database-based periodic task scheduler.

Requires removing TaskMeta

Release 3.2.2 is the last one and is not compatible with Celery 4.0+, so this is required for #3305.

Remove DB tables used by Django ORM result backend:
manage.py migrate djcelery zero

@ngehlenborg
Copy link
Contributor

While this is fresh in your memory, can you please note here what the dependencies are that led you to update it in #871?

@hackdna
Copy link
Member Author

hackdna commented Feb 9, 2016

Basically, django-celery version must match Celery version.

@mccalluc
Copy link
Member

mccalluc commented Aug 5, 2016

#872

@scottx611x scottx611x added this to Dependencies in Technical Debt Oct 20, 2017
@hackdna hackdna added this to the Release 1.6.9 milestone Apr 2, 2019
@hackdna hackdna self-assigned this Apr 9, 2019
@hackdna hackdna changed the title Remove django-celery Replace django-celery Apr 9, 2019
@hackdna hackdna modified the milestones: Release 1.6.9, Next Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Technical Debt
  
Dependencies
Development

No branches or pull requests

3 participants