如何获取步骤机ID?

发布于 2025-02-09 13:26:56 字数 299 浏览 2 评论 0原文

问题

问题是,每当步骤功能失败时,我们都想对几件事做。

  1. 捕获错误
  2. 发送通知(包括故障的确切引用)
  3. 当前处理错误(反向过程)

,这是request-id中唯一可用的信息,只要跟踪中有异常/错误,就只有有限的信息。如此参考所示

  • ​>)

如何获得确切的堆栈参考并将其传递给lambda或在lambda中访问它?

Problem

The issue is that whenever the step functions fail we want to do to a couple of things.

  1. Catch the error
  2. Send a notification (including the exact reference of the failure)
  3. Handle the error (reverse process)

Currently, the only information that is available in the request-id, whenever there is an exception/error inside the traceback, there is only a limited amount of information. As seen in this reference https://docs.aws.amazon.com/lambda/latest/dg/python-context.html

Tried:

  • The context variable
  • Digging into boto3 to find a hacky solution
  • Step function ResultSet data (doesn't provide \w error id)

How to get the exact stack reference and pass it to a lambda or access it within a lambda?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文