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)?
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)?
2
Answers
You can do something like this:
The
exn_failed_event
dictionary will look something like thisBased 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: