mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 14:57:54 -05:00
* fix(stepfunctions): fail a .sync Task on its child with States.TaskFailed and the child's description Measured on AWS (ap-northeast-1, 2026-09-29), six child endings under both states:startExecution.sync and .sync:2: FAILED with a custom error with and without a cause, FAILED with States.Timeout from a Task's own TimeoutSeconds, FAILED with States.TaskFailed, TIMED_OUT, and ABORTED by a StopExecution carrying an error and a cause. In every case the parent Task fails with States.TaskFailed, and the cause is the child's DescribeExecution response as JSON: PascalCase, keys in alphabetical order, Cause and Error only when the child has them, dates in epoch milliseconds, no Output. Floci passed the child's own error and cause straight through, falling back to States.TaskFailed and "Nested execution ended with status: X" only when the child had none. The error name matched AWS in two of the six cases and the cause in none, so a parent Catch on States.TaskFailed missed a child that failed with its own error or timed out, and a Catch on the child's error name fired where AWS never takes it. Closes #4562 * fix(stepfunctions): read a nested child's terminal state consistently, and keep its alias and version Review of #4675. The poll read the child's status without the monitor its worker and StopExecution write the terminal fields under (status last), so a terminal status could be seen before the error, cause or stop date behind it, and the cause built from a half-written child. The status is now read under that monitor, which makes everything written before it visible. A child started through an alias or a version also carries StateMachineAliasArn and StateMachineVersionArn in the cause, measured on AWS (ap-northeast-1, 2026-09-29): an alias gives both, a version only the version, each in its alphabetical place between StartDate and Status. --------- Co-authored-by: mitsukado-shinagawa <mitsukado-shinagawa@users.noreply.github.com>