django-rest-hooks
django-rest-hooks copied to clipboard
[DRH-3]: Fix import for celery 5.0
Celery 5.0 no longer contains the celery.task
module. The Task
class has been moved into the celery
namespace.
@erikcw we have to add fake JIRA ticket syntax since we can't figure out a way to get rid of it for now.
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?