django-rest-hooks icon indicating copy to clipboard operation
django-rest-hooks copied to clipboard

[DRH-3]: Fix import for celery 5.0

Open erikcw opened this issue 4 years ago • 2 comments

Celery 5.0 no longer contains the celery.task module. The Task class has been moved into the celery namespace.

erikcw avatar Jan 27 '21 00:01 erikcw

@erikcw we have to add fake JIRA ticket syntax since we can't figure out a way to get rid of it for now.

avelis avatar Jan 27 '21 00:01 avelis

This fix is not quite complete since in the newer version of Celery the task won't get registered by default. I think converting it to a shared_task is the correct approach here?

sciyoshi avatar Mar 19 '21 19:03 sciyoshi