uranusjr commented on code in PR #50040:
URL: https://github.com/apache/airflow/pull/50040#discussion_r2071350440
##########
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
Review Comment:
Since this function has a DagBag object, I’d just auto-populate the variable
instead. This is actually done above on line 288 for another situation.
--
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]