amoghrajesh commented on code in PR #44241:
URL: https://github.com/apache/airflow/pull/44241#discussion_r1856763276
##########
task_sdk/src/airflow/sdk/execution_time/supervisor.py:
##########
@@ -463,10 +467,18 @@ def final_state(self):
Not valid before the process has finished.
"""
+ if self._final_state:
+ return self._final_state
if self._exit_code == 0:
return self._terminal_state or TerminalTIState.SUCCESS
return TerminalTIState.FAILED
+ @final_state.setter
+ def final_state(self, value):
+ """Setter for final_state for certain task instance stated present in
IntermediateTIState."""
+ if value not in TerminalTIState:
+ self._final_state = value
Review Comment:
As per our discussion, keeping it for now, will remove in a follow up PR
--
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]