Skip to content

Make sure stale file handler doesn't crash the DagFileProcessorManager#69324

Open
dabla wants to merge 3 commits into
apache:mainfrom
dabla:fix/stale-file-handler-dag-processor
Open

Make sure stale file handler doesn't crash the DagFileProcessorManager#69324
dabla wants to merge 3 commits into
apache:mainfrom
dabla:fix/stale-file-handler-dag-processor

Conversation

@dabla

@dabla dabla commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

As described in issue #69321, this PR makes sure a stale file handler doesn't crash the DagFileProcessorManager. The OSError should be catched and logged as warning instead.


Was generative AI tooling used to co-author this PR?
  • [ x ] Yes (please specify the tool below)

Claude Opus 4.6


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@dabla dabla requested review from amoghrajesh and removed request for ephraimbuddy and jedcunningham July 3, 2026 10:06

@SameerMesiah97 SameerMesiah97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just one nit if you want to address it.

Comment thread airflow-core/src/airflow/dag_processing/manager.py Outdated
dabla added 2 commits July 3, 2026 22:42
…more DRY approach on how to close the logger file handler and catch OSError if file handler is stale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants