meel-ayush commented on code in PR #76559:
URL: https://github.com/apache/airflow/pull/76559#discussion_r4490546854
##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -936,8 +938,10 @@ def _refresh_dag_bundles(self, known_files: dict[str,
set[DagFileInfo]]):
any_refreshed = True
except Exception:
self.log.exception("Error refreshing bundle %s", bundle.name)
+ self._record_bundle_refresh_error(bundle.name,
traceback.format_exc())
continue
+ self._clear_bundle_refresh_error(bundle.name)
Review Comment:
Makes sense. Moved the clear call after _find_files_in_bundle so it only
clears once discovery actually finishes. Also updated the test to cover
back-to-back failures.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]