Repository navigation
Record import errors on Dag bundle refresh and discovery failures - #76559
Open
meel-ayush wants to merge 1 commit into
Open
meel-ayush wants to merge 1 commit into
meel-ayush wants to merge 1 commit into
Conversation
meel-ayush
requested review from
ephraimbuddy and
jedcunningham
as code owners
November 5, 2026 19:05
yuseok89
reviewed
Nov 6, 2026
2 tasks done
meel-ayush
force-pushed
the
fix-bundle-refresh-silent-failure
branch
from
November 6, 2026 08:38
4270551 to
a4b1ded
Compare
meel-ayush
force-pushed
the
fix-bundle-refresh-silent-failure
branch
2 times, most recently
from
November 7, 2026 14:22
000d0d7 to
6cc9a08
Compare
its-amann
reviewed
Nov 7, 2026
meel-ayush
force-pushed
the
fix-bundle-refresh-silent-failure
branch
2 times, most recently
from
November 7, 2026 17:11
87d5ce2 to
2079e5e
Compare
meel-ayush
force-pushed
the
fix-bundle-refresh-silent-failure
branch
from
November 7, 2026 18:29
2079e5e to
0f75465
Compare
In Airflow 3, when bundle initialization, refresh, or Dag definition discovery failed in the Dag processor manager due to network timeouts, rate limiting, or disk permission errors, the exception was logged to daemon logs but never persisted to the metadata database. As a result, the Airflow Web UI showed zero import errors and presented the environment as healthy while Dag synchronization silently halted. Persist these failures to ParseImportError scoped to the affected bundle, allowing operators to immediately view and diagnose bundle synchronization errors from the UI dashboard and bundle listings. When subsequent bundle refreshes succeed, the associated bundle-level import error is automatically purged.
meel-ayush
force-pushed
the
fix-bundle-refresh-silent-failure
branch
from
November 10, 2026 11:07
0f75465 to
d4ab17a
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes: #76552
When bundle initialization, refresh, or file discovery fails in
DagFileProcessorManager(such as a git connection timeout, repository authentication failure, rate limiting, or disk permission issues), the exception was caught and logged to daemon logs, but no record was persisted to the metadata database.Because
ParseImportErrorreceived 0 records, the Airflow Web UI reported 0 import errors and displayed the environment as fully healthy, even though Dag synchronization from the bundle had halted completely.This PR ensures bundle-level refresh and discovery failures are persisted to the metadata database:
ParseImportErrorfor the affected bundle whenbundle.initialize(),bundle.refresh(), or_find_files_in_bundle()raises an unhandled exception.ParseImportErroronce a subsequent bundle refresh succeeds.Tests
airflow-core/tests/unit/dag_processing/test_manager.py:test_refresh_dag_bundles_refresh_failure_records_and_clears_import_error: verifies that refresh exceptions record aParseImportErrorand that subsequent successful refreshes clear the error.test_refresh_dag_bundles_discovery_failure_records_import_error: verifies that file discovery exceptions record aParseImportError.AI Usage