ephraimbuddy commented on code in PR #65543:
URL: https://github.com/apache/airflow/pull/65543#discussion_r3152266853
##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -568,13 +568,21 @@ def _claim_priority_files(self, session: Session =
NEW_SESSION) -> list[DagFileI
session.delete(request)
return files
+ def fetch_callbacks(self) -> list[CallbackRequest]:
+ """
+ Fetch and claim callbacks for this manager's bundles.
+
+ Default implementation reads from the metadata DB; override to source
callbacks from an API.
+ """
+ return self._fetch_callbacks_from_db()
+
@provide_session
@retry_db_transaction
- def _fetch_callbacks(
+ def _fetch_callbacks_from_db(
self,
session: Session = NEW_SESSION,
) -> list[CallbackRequest]:
- """Fetch callbacks from database and add them to the internal queue
for execution."""
+ """Fetch callbacks from the metadata database."""
Review Comment:
```suggestion
"""Fetch callbacks from database and add them to the internal queue
for execution."""
```
--
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]