marklogic-community / marklogic-state-conductor

An event-based state-machine engine for manipulating MarkLogic database documents.
Other
1 stars 4 forks source link

getExecutionDocuments shouldn't attempt to resume waiting executions that have failed #189

Open aclavio opened 3 years ago

aclavio commented 3 years ago

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.