mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 06:20:24 -05:00
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>