Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

  • Fix import errors not cleared for files without DAGs

Previously, import errors persisted in the database for files that were successfully parsed but no longer contained any DAGs. This happened because we only tracked files that had DAGs, missing files that were parsed successfully but had their DAGs removed.

Now, when files are parsed, all parsed files are tracked (not just those with DAGs), ensuring import errors are properly cleared when a file is successfully parsed without errors, even if it no longer contains DAGs.

closes: #57621

  • Apply suggestions from code review

  • fixup! Fix import errors not cleared for files without DAGs

  • Remove fallback for files_parsed

  • fixup! fixup! Fix import errors not cleared for files without DAGs

  • fixup! Remove fallback for files_parsed

  • fixup! fixup! fixup! Fix import errors not cleared for files without DAGs


(cherry picked from commit 796b46e)

)

* Fix import errors not cleared for files without DAGs

Previously, import errors persisted in the database for files that were
successfully parsed but no longer contained any DAGs. This happened
because we only tracked files that had DAGs, missing files that
were parsed successfully but had their DAGs removed.

Now, when files are parsed, all parsed files are tracked (not just those
with DAGs), ensuring import errors are properly cleared when a file is
successfully parsed without errors, even if it no longer contains DAGs.

closes: #57621

* Apply suggestions from code review

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>

* fixup! Fix import errors not cleared for files without DAGs

* Remove fallback for files_parsed

* fixup! fixup! Fix import errors not cleared for files without DAGs

* fixup! Remove fallback for files_parsed

* fixup! fixup! fixup! Fix import errors not cleared for files without DAGs

---------
(cherry picked from commit 796b46e)

Co-authored-by: Ephraim Anierobi <splendidzigy24@gmail.com>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@ephraimbuddy ephraimbuddy merged commit 80a75d4 into v3-1-test Dec 16, 2025
63 checks passed
@ephraimbuddy ephraimbuddy deleted the backport-796b46e-v3-1-test branch December 16, 2025 10:57
ephraimbuddy added a commit that referenced this pull request Jan 6, 2026
) (#59500)

* Fix import errors not cleared for files without DAGs

Previously, import errors persisted in the database for files that were
successfully parsed but no longer contained any DAGs. This happened
because we only tracked files that had DAGs, missing files that
were parsed successfully but had their DAGs removed.

Now, when files are parsed, all parsed files are tracked (not just those
with DAGs), ensuring import errors are properly cleared when a file is
successfully parsed without errors, even if it no longer contains DAGs.

closes: #57621

* Apply suggestions from code review



* fixup! Fix import errors not cleared for files without DAGs

* Remove fallback for files_parsed

* fixup! fixup! Fix import errors not cleared for files without DAGs

* fixup! Remove fallback for files_parsed

* fixup! fixup! fixup! Fix import errors not cleared for files without DAGs

---------
(cherry picked from commit 796b46e)

Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jan 6, 2026
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.6 milestone Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant