Skip to content

Commit

Permalink
Add parent init call in custom task class
Browse files Browse the repository at this point in the history
  • Loading branch information
ApostolFet committed Nov 24, 2024
1 parent fe90aa5 commit 465f93b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dishka/integrations/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 465f93b

Please sign in to comment.