Occasionally, I have a workflow that does not complete successfully ( Failed status). I’m trying to capture the actual details around the failure (which is associated with an ApplicationError
exception) from the result()
method associated with get_workflow_handle()
.
However, that method throws a WorkflowFailureError
client exception similar to the following:
ApplicationError Traceback (most recent call last)
ApplicationError: MyCustomException: Failed to fix aspect: 30800000-4343-4653-3344-4d3134304b30:e_link_width : MyCustomException(StatusCode.NOT_FOUND, Did not find alert to update!)
The above exception was the direct cause of the following exception:
ActivityError Traceback (most recent call last)
ActivityError: Activity task failed
The above exception was the direct cause of the following exception:
WorkflowFailureError Traceback (most recent call last)
How can I get the ApplicationError
exception? I can’t catch that exception from result()
.