diff --git a/core/celery/tasks/__init__.py b/core/celery/tasks/__init__.py index 1e6d8464f2..fdeedf2dbf 100644 --- a/core/celery/tasks/__init__.py +++ b/core/celery/tasks/__init__.py @@ -1 +1,2 @@ # In order for Celery to recognize the tasks in this directory, we need to import them here. +from core.celery.tasks.inventory_reports import generate_inventory_reports_task diff --git a/core/celery/worker.py b/core/celery/worker.py index 914ac1b1fc..74089ec250 100644 --- a/core/celery/worker.py +++ b/core/celery/worker.py @@ -1,5 +1,6 @@ # We need this line to make sure all our tasks are registered with # the Celery app when the worker starts. + from core.celery import tasks # noqa: autoflake from core.service.container import container_instance