Skip to content

Commit

Permalink
Avoid using dict as default value in call_regular_interval (apache#36608
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hussein-awala authored and abhishekbhakat committed Mar 5, 2024
1 parent 3b168c0 commit 6d5eb81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/utils/event_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def call_regular_interval(
delay: float,
action: Callable,
arguments=(),
kwargs={},
kwargs=None,
):
"""Call a function at (roughly) a given interval."""

Expand All @@ -43,4 +43,4 @@ def repeat(*args, **kwargs):
# Good enough for now
self.enter(delay, 1, repeat, args, kwargs)

self.enter(delay, 1, repeat, arguments, kwargs)
self.enter(delay, 1, repeat, arguments, kwargs or {})

0 comments on commit 6d5eb81

Please sign in to comment.