uranusjr commented on code in PR #74789:
URL: https://github.com/apache/airflow/pull/74789#discussion_r4344032790
##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -1509,17 +1598,61 @@ def _create_process(self, dag_file: DagFileInfo) ->
BaseDagFileProcessorProcess:
client=self.client,
)
+ def _get_dispatch_source(self, file: DagFileInfo) -> DagParseSource | None:
+ if file in self._callback_to_execute and (
+ file.bundle_version is not None or file.bundle_name not in
self._bundles_waiting_for_refresh
+ ):
+ # Callbacks can run after refresh failures, but pending refreshes
must drain unversioned callbacks.
+ return DagParseSource(bundle_version=file.bundle_version)
Review Comment:
This synthetic value only works because callback-only results skip the
generation check at L1395. Make that explicit, e.g. a
DagParseSource.for_callback(...) or a flag.
--
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]