如何获取在哪个步骤功能失败的组件名称
我有executionArn
stepfunction
执行的列表,我正在过滤这些executionArn
by status =='失败'
。
现在,如何在python中获得stepfunction
的确切失败(意思是:执行失败)?
I have list of executionArn
of stepfunction
execution, I am filtering those executionArn
by status == 'FAILED'
.
Now, how can I get the exact failure of the stepfunction
in Python, (meaning: at which point the execution has failed)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以做这样的事情:
exn_failed_event
字典看起来像这样You can do something like this:
The
exn_failed_event
dictionary will look something like this基于有一个
搜索
方法,您可以在迭代器对象上调用。因此,您的实际代码可以简化 - 并收集不需要的数据 - 到:
Based on this issue in
boto3
repository, it looks like there is asearch
method that you can call on an iterator object.So your actual code could be simplified — and gather less unneeded data — to: