Skip to content

Catch general Exception when initializing a dag bundle - #71355

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:fix-dag-bundle-init-broad-exception
Aug 10, 2026
Merged

Catch general Exception when initializing a dag bundle#71355
kaxil merged 1 commit into
apache:mainfrom
astronomer:fix-dag-bundle-init-broad-exception

Conversation

@amoghrajesh

Copy link
Copy Markdown
Contributor

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

Related to #70622 , GitDagBundle now raises FileNotFoundError (an OSError) when its bare repo path disappears. That type escapes the narrow catch using AirflowException, propagates out of the refresh loop, and crashes the whole DAG processor instead of skipping the one bundle.

Broaden the catch to match its neighbors.


  • 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.

@kaxil kaxil added the backport-to-v3-3-test Backport to v3-3-test label Aug 10, 2026
@kaxil
kaxil merged commit ca31bc2 into apache:main Aug 10, 2026
77 checks passed
@kaxil
kaxil deleted the fix-dag-bundle-init-broad-exception branch August 10, 2026 08:36
@github-actions

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
v3-3-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 10, 2026
…pache#71355)

(cherry picked from commit ca31bc2)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
aws-airflow-bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 10, 2026
…pache#71355)

(cherry picked from commit ca31bc2)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
vatsrahul1001 pushed a commit that referenced this pull request Aug 13, 2026
…71355)

(cherry picked from commit ca31bc2)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
dabla pushed a commit to dabla/airflow that referenced this pull request Aug 14, 2026
potiuk pushed a commit that referenced this pull request Aug 17, 2026
…71355)

(cherry picked from commit ca31bc2)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
potiuk pushed a commit that referenced this pull request Aug 17, 2026
…71355) (#71363)

(cherry picked from commit ca31bc2)

Co-authored-by: Amogh Desai <amoghrajesh1999@gmail.com>
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.

3 participants