dstandish commented on code in PR #50040:
URL: https://github.com/apache/airflow/pull/50040#discussion_r2075936423
##########
airflow-core/src/airflow/models/taskinstance.py:
##########
@@ -326,6 +327,19 @@ def clear_task_instances(
if dr.state in State.finished_dr_states:
dr.state = dag_run_state
dr.start_date = timezone.utcnow()
+ if TYPE_CHECKING:
+ assert dag # todo: change signature so this is required
+ if not dag.disable_bundle_versioning:
+ if dr.dag_model:
+ bundle_version = dr.dag_model.bundle_version
+ else:
+ bundle_version = session.scalar(
+ select(DagModel.bundle_version).where(
+ DagModel.dag_id == dag.dag_id,
+ )
+ )
Review Comment:
removed this logic
--
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]