jason810496 commented on code in PR #68012:
URL: https://github.com/apache/airflow/pull/68012#discussion_r3978184670


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -309,6 +309,8 @@ def ti_run(
             xcom_keys_to_clear=xcom_keys,
             should_retry=_is_eligible_to_retry(previous_state, ti.try_number, 
ti.max_tries),
         )
+        if first_task_reschedule_start_date is not None:
+            context.first_task_reschedule_start_date = 
first_task_reschedule_start_date

Review Comment:
   It should be safe to define as
   
   ```python
   TIRunContext(
       ...
       task_reschedule_count=task_reschedule_count,
       first_task_reschedule_start_date=first_task_reschedule_start_date,
       max_tries=ti.max_tries,
       ...
   ```



-- 
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]

Reply via email to