Skip to content

Commit

Permalink
Update baseoperator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulgoyal2987 authored Dec 4, 2024
1 parent 5b5f8f4 commit 17acc46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airflow/models/baseoperator.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ def wrapper(self, *args, **kwargs):
sentinel = kwargs.pop(sentinel_key, None)

if sentinel:
if not getattr(cls._sentinel,'callers',None):
cls._sentinel.callers = {}
cls._sentinel.callers[sentinel_key] = sentinel
else:
sentinel = cls._sentinel.callers.pop(f"{func.__qualname__.split('.')[0]}__sentinel", None)
Expand Down

0 comments on commit 17acc46

Please sign in to comment.