Skip to content
Advertisement

Celery is not loading tasks from one app out of five

I’m using autodiscover in my celery.py file for gathering tasks. Which up until a recently picked all of the app.tasks.py up, I’m not sure why but my config.tasks.py function are no longer being picked up, but all the other apps are. If I from “config.tasks import *” there are no errors and I can run the tasks manually through shell.

ive tried using force=True on autodiscover which had no effect, and a number of other solutions, none of which seem to have any effect, does anyone have any ideas on what to check next?

Thanks

Structure:

JavaScript

celery config

JavaScript

settings.py

JavaScript

tasks.py

JavaScript

console output

JavaScript

Advertisement

Answer

I rebuilt my docker container and now they’re all loading again, not sure what would of caused this but its working!

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement