o-nikolas commented on code in PR #69185:
URL: https://github.com/apache/airflow/pull/69185#discussion_r3532249079
##########
airflow-core/src/airflow/models/trigger.py:
##########
@@ -570,12 +566,18 @@ def _submit_callback_if_necessary() -> None:
if event.task_instance_state in (TaskInstanceState.SUCCESS,
TaskInstanceState.FAILED):
if task_instance.dag_model.relative_fileloc is None:
raise RuntimeError("relative_fileloc should not be None for a
finished task")
+ from airflow.models.dag_version import resolve_pinned_version_data
+
+ version_data = resolve_pinned_version_data(
+ task_instance.dag_version, task_instance.dag_run.bundle_version
Review Comment:
Yeah, good catch, I'll try to sync them
--
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]