步进功能超过最大字符数服务限制

时间:2019-04-16 07:15:20

标签: amazon-web-services aws-step-functions

我在步进函数流程中的状态返回错误state/task returned a result with a size exceeding the maximum number of characters service limit.。在step function documentation中,输入/输出字符的限制为32,768 characters。检查我的结果数据的总字符数是否低于限制。还有其他情况会引发该错误吗?谢谢!

1 个答案:

答案 0 :(得分:6)

2020-09-29编辑:步骤功能现在支持256KB负载!

256KB是可在状态之间传递的有效负载的最大大小。您还可以在Map或Parallel状态下超出此限制,其最终输出是一个包含每次迭代或分支的输出的数组。

https://aws.amazon.com/about-aws/whats-new/2020/09/aws-step-functions-increases-payload-size-to-256kb

“步骤功能”文档中建议的解决方案是将数据存储在其他位置(例如S3)并传递ARN而不是原始JSON。

https://docs.aws.amazon.com/step-functions/latest/dg/avoid-exec-failures.html

您还可以使用OutputPath将输出缩减为要传递给下一个状态的字段。

https://docs.aws.amazon.com/step-functions/latest/dg/input-output-outputpath.html

相关问题