I saw a lot of similar questions but nothing helped.
Every now and then I am receiving the following error: ‘app.tasks.do_some_work’. When I check inside the Django container, Celery Beat container, or Celery Worker container’s app.tasks module, I don’t see any task with that name.
I define the schedule for periodic tasks using celery_app.conf.beat_schedule, and everything appears to be correctly set up. I suspect that there might have been a task with this name in the past, but it was deleted or renamed. Maybe somehow it persists
Here is the code inside the containers:
from proj.celery import celery_app
@celery_app.task
def do_some_work():
DoSomeWorkUseCase.execute()
return True
Tried to use:
- Define CELERY_IMPORTS in settings