mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 17:05:21 -05:00
executeParallelState joined the branch futures in declaration order, so a failure in a later branch was only seen once every earlier branch had returned: a .sync Task listed before the failing branch kept the Parallel running until its job ended on its own, and a Wait listed first until the Wait ended. AWS fails the Parallel within about 0.1 s of the failing branch either way (measured in #4646). The branches now go through an ExecutorCompletionService, as the Map iterations already do, and are polled as they complete under the same two deadlines. The failed branch is the one whose future came off the queue, so continueFrom and the aborted-state events of #4660 attach to the same chain. The outputs are collected by branch index and still come back in declaration order. Closes #4646 Co-authored-by: mitsukado-shinagawa <mitsukado-shinagawa@users.noreply.github.com>