Skip to content

Commit

Permalink
Avoid using dict as default value in call_regular_interval (#36608)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f275cf)
  • Loading branch information
hussein-awala authored and ephraimbuddy committed Jan 11, 2024
1 parent bbf1fbd commit b71d388
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 b71d388

Please sign in to comment.