If an execution fails in a "wait" state, then it retains it's "currentlyWaiting" data, causing the "getExecutionDocuments" function to pick it up. This results in many noop attempts to process that failed document wasting time.
The code in "getExecutionDocuments" should only look to resume executions in the "waiting" status.
If an execution fails in a "wait" state, then it retains it's "currentlyWaiting" data, causing the "getExecutionDocuments" function to pick it up. This results in many noop attempts to process that failed document wasting time.
The code in "getExecutionDocuments" should only look to resume executions in the "waiting" status.