You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "amoghrajesh (via GitHub)" <gi...@apache.org> on 2024/12/13 19:22:53 UTC
Re: [PR] AIP-72: Handling "up_for_reschedule" task instance states [airflow]
amoghrajesh commented on code in PR #44907:
URL: https://github.com/apache/airflow/pull/44907#discussion_r1884385082
##########
airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -147,7 +149,26 @@ def ti_update_state(
next_kwargs=ti_patch_payload.trigger_kwargs,
trigger_timeout=timeout,
)
+ elif isinstance(ti_patch_payload, TIRescheduleStatePayload):
+ task_instance = session.scalar(select(TI).where(TI.id == ti_id_str))
+ actual_start_date = timezone.utcnow()
+ # update the task_reschedule table first
+ session.add(
+ TaskReschedule(
Review Comment:
Should be better now @ephraimbuddy
Handled in 53c80679d878ad2f6ad9f70fb4f2304176591b1e
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org