简体   繁体   中英

Aws Step function parallel states

当步骤函数的并行状态完成时,假设它们都产生值数组,那么在最终输出中是否保证顺序,并且有没有办法将它拆分,以便我知道哪一组值来自一个并行任务?

https://docs.aws.amazon.com/step-functions/latest/dg/amazon-states-language-parallel-state.html

I was just exploring this, and based off the example in the link above, the resulting array from the parallel task is ordered by the branch configuration order.

The input to the step function is [ 3, 2 ] and the first defined branch of the parallel task adds the two numbers, and the second subtracts the two numbers.

The output from the Parallel task is [ 5, 1 ] , ie [ 3+2, 3-2 ] , therefore ordering the results by branch configuration order.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM