jason810496 commented on code in PR #62823:
URL: https://github.com/apache/airflow/pull/62823#discussion_r2887405557
##########
devel-common/src/tests_common/test_utils/db.py:
##########
@@ -74,6 +79,18 @@
from airflow.models.dag_favorite import DagFavorite
+def _retry_db(func):
+ """Retry on transient DB errors."""
+
+ @functools.wraps(func)
+ def wrapper(*args, **kwargs):
+ for attempt in run_with_db_retries(logger=_log):
+ with attempt:
+ return func(*args, **kwargs)
+
+ return wrapper
Review Comment:
Could you please add some comments about the reason of retrying DB here. e.g
The flaky error we encounter.
In case the further developers don't know about the context and remove the
retry.
--
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]