Skip to content

Commit

Permalink
Warn on mini scheduler failures instead of debug (#39760)
Browse files Browse the repository at this point in the history
Mini scheduler issues are rare and hard to debug. Chances are the problem won't be reproducible after enabling debug logging.

(cherry picked from commit 38e003c)
  • Loading branch information
RNHTTR authored and ephraimbuddy committed Jun 5, 2024
1 parent dac25fc commit 481fb8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models/taskinstance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3506,7 +3506,7 @@ def _schedule_downstream_tasks(

except OperationalError as e:
# Any kind of DB error here is _non fatal_ as this block is just an optimisation.
cls.logger().debug(
cls.logger().warning(
"Skipping mini scheduling run due to exception: %s",
e.statement,
exc_info=True,
Expand Down

0 comments on commit 481fb8e

Please sign in to comment.