mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
When a .sync Task's wait ends early, Step Functions "will make a best-effort attempt to cancel the task". Floci's EMR Serverless undo already passes over only the answers that say the application or run is gone or past undoing, and fails the Task with any other. Its three siblings passed over every failure: the EMR step's cancel, the ECS tasks' stop and the child execution's abort. Each now passes over only its service's answer for a job that is gone or past undoing, logged as before: EMR's InvalidRequestException for a cluster that is gone or a release that cannot cancel steps (a step it will not cancel comes back FAILED in an answer that succeeds), ECS's InvalidParameterException for a task it does not know, and Step Functions' ExecutionDoesNotExist; a task already stopped and a child already ended are answered without an error. Any other refusal fails the state with the integration's error (EMR.<name>, ECS.<code>, StepFunctions.<code>) and the service's message, the ECS one once every task has been asked to stop, and any other failure is raised.