步进功能超过最大字符数服务限制 [英] Step function exceeding the maximum number of characters service limit
问题描述
我在步进功能流程中的状态返回错误state/task returned a result with a size exceeding the maximum number of characters service limit.
.在步进函数文档中,输入/输出字符的限制为32,768 characters
.在检查我的结果数据的总字符是否低于限制时.还有其他情况会引发该错误吗?谢谢!
My state in a step function flow returns an error of state/task returned a result with a size exceeding the maximum number of characters service limit.
. In the step function documentation, the limit for characters for input/output is 32,768 characters
. Upon checking the total characters of my result data if falls below the limit. Are there any other scenarios that it will throw that error? Thanks!
推荐答案
32KB是可在状态之间传递的有效负载的最大大小.您还可以从Map或Parallel状态中超出此限制,其最终输出是具有每个迭代或分支的输出的数组.
32KB is the maximum size of the payload that can be passed between states. You could also exceed this limit from a Map or Parallel state, whose final output is an array with the output of each iteration or branch.
步骤功能"文档中建议的解决方案是将数据存储在其他位置(例如S3)并传递ARN而不是原始JSON.
The recommended solution from the Step Functions documentation is to store the data somewhere else (e.g. S3) and pass around the ARN instead of raw JSON.
https://docs.aws .amazon.com/step-functions/latest/dg/avoid-exec-failures.html
您还可以使用OutputPath
将输出缩减为要传递给下一个状态的字段.
You can also use OutputPath
to reduce the output to the fields you want to pass to the next state.
https://docs.aws .amazon.com/step-functions/latest/dg/input-output-outputpath.html
这篇关于步进功能超过最大字符数服务限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!