yuseok89 commented on code in PR #76559:
URL: https://github.com/apache/airflow/pull/76559#discussion_r4489436774
##########
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:
If listing keeps failing, the error is cleared here and recorded again as
new on every refresh, so `on_new_dag_import_error` repeats. Clearing it after
_find_files_in_bundle succeeds might avoid the duplicate messages.
--
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]