From eddf35fd0ed0520059b76110b71448536496e85f Mon Sep 17 00:00:00 2001 From: Jonathan Green Date: Wed, 3 Apr 2024 14:00:19 -0300 Subject: [PATCH] Add imports --- core/celery/tasks/__init__.py | 1 + core/celery/worker.py | 1 + 2 files changed, 2 insertions(+) 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