From 465f93b346821d34e7e2841a83bd9009d160f862 Mon Sep 17 00:00:00 2001 From: Apostol Fet Date: Sun, 24 Nov 2024 20:15:22 +0300 Subject: [PATCH] Add parent init call in custom task class --- src/dishka/integrations/celery.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dishka/integrations/celery.py b/src/dishka/integrations/celery.py index ca235b3..2243f29 100644 --- a/src/dishka/integrations/celery.py +++ b/src/dishka/integrations/celery.py @@ -72,6 +72,8 @@ def exit_scope( class DishkaTask(Task): def __init__(self) -> None: + super().__init__() + run = self.run if not is_dishka_injected(run):