amoghrajesh commented on code in PR #76833:
URL: https://github.com/apache/airflow/pull/76833#discussion_r4658705538
##########
task-sdk/src/airflow/sdk/bases/resumablejobmixin.py:
##########
@@ -132,12 +151,31 @@ def execute_resumable(self, context: Context) -> Any:
decision = self.get_resume_decision(context)
if decision.action == "reconnect":
- return self.poll_until_complete(decision.external_id, context)
+ self._record_try(context, DurableDecision.RECONNECTED,
decision.external_id, status="running")
+ try:
+ result = self.poll_until_complete(decision.external_id,
context)
+ except Exception:
+ self._record_try(context, DurableDecision.RECONNECTED,
decision.external_id, status="failed")
Review Comment:
When the reconnect poll is raised, the mixin now reads the job status first
and records `failed` only when the job is terminal and did not succeed. A wait
timeout on a still-running job leaves the entry `running`, which the banner
shows as unknown once the try ends.
--
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]