I have a workflow that adds 100 documents to the OCR queue, then waits 4 minutes before adding another 100 documents, and continues until a certain time of day. The 4 minute delay is to try to avoid the 5000 active job OCR limit with DCC.
I also added a condition that if at any time the workflow activity to schedule OCR with DCC fails, end the workflow and notify me, because that is probably from hitting the 5000 active job limit. However, I've come to the realization that if the activity tries to schedule a job and can't due to the limit, the "schedule succeeded" token for the OCR activity is still "true," so the workflow continues unsuccessfully assigning new tasks.
Is there a way I can send the email and end the workflow if it his the active job limit?