acoustic-carpenter-78188
06/29/2026, 7:00 PMFAILED 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-sdkacoustic-carpenter-78188
06/29/2026, 7:11 PM