<#1270 Fix: propagate sub-action error on parent r...
# flyte-github
a
#1270 Fix: propagate sub-action error on parent recovery (USER error masked as SYSTEM) Pull request opened by kumare3 Severity: Critical When a parent action recovers/retries and re-watches a sub-action that is already in a terminal
FAILED
state, the controller passes the local
action
stub (not the observed final state
n
) to
handle_action_failure
. The stub has no phase/error, so a recoverable USER error gets masked as a SYSTEM
UnableToConvertError: ... None
. That synthesized error is itself recoverable, so the parent retries and re-hits the same failed child indefinitely. First attempts are unaffected — only the recovery path is broken. Fix Pass
n
(the observed/cached final state) to
handle_action_failure
in
_submit
and
_submit_task_ref
. Test Adds a regression test for the recovery race (fails before, passes after) and updates
test_submit_task_with_error
, which had asserted the buggy fallback.
pytest tests/internal/controllers/
→ 97 passed. 🤖 Generated with Claude Code flyteorg/flyte-sdk