amoghrajesh commented on code in PR #52729:
URL: https://github.com/apache/airflow/pull/52729#discussion_r2181959271
##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -977,9 +979,12 @@ def _handle_current_task_failed(
end_date = datetime.now(tz=timezone.utc)
if ti._ti_context_from_server and ti._ti_context_from_server.should_retry:
return RetryTask(end_date=end_date), TaskInstanceState.UP_FOR_RETRY
- return TaskState(
- state=TaskInstanceState.FAILED, end_date=end_date,
rendered_map_index=ti.rendered_map_index
- ), TaskInstanceState.FAILED
+ return (
+ TaskState(
+ state=TaskInstanceState.FAILED, end_date=end_date,
rendered_map_index=ti.rendered_map_index
Review Comment:
Can we not use ti.end_date here also?
--
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]