Files
floci/src/main/java/io/github
Facundo ParedesandFacundo Paredes acf88794ca fix(stepfunctions): end the execution when a state throws an Error (#2693)
doExecute caught Exception only, so an Error escaping a state left the
execution RUNNING with no terminal status, no error, no cause and no
ExecutionFailed event, and executeAsync dropped the Future that held it.

The outer handler now catches Error as well, writes the same terminal
FAILED an exception produces with the Error's toString() as the cause, and
rethrows so the failure is not swallowed. executeAsync logs whatever
escapes the worker with its stack trace. The Parallel branch handler
unwraps an Error cause instead of rethrowing the ExecutionException
wrapper, and the per-state runtime catch folds into the outer one so a
single method writes every terminal failure.

Closes #2666

Co-authored-by: Facundo Paredes <25681464+facuparedes@users.noreply.github.com>
2026-08-28 19:28:22 -04:00
..