kaxil commented on code in PR #44954:
URL: https://github.com/apache/airflow/pull/44954#discussion_r1888859444
##########
airflow/api_fastapi/execution_api/routes/task_instances.py:
##########
@@ -201,6 +201,12 @@ def ti_update_state(
if isinstance(ti_patch_payload, TITerminalStatePayload):
query = TI.duration_expression_update(ti_patch_payload.end_date,
query, session.bind)
+ query = query.values(
+ state=ti_patch_payload.state,
+ )
+ if ti_patch_payload.state == State.FAILED:
Review Comment:
tbh we don't need this `if` check I think, we can set `next_method=None,
next_kwargs=None` for all `TITerminalStatePayload`
--
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]