Agent is not picking the request.

Agent is not picking the request.

Issue -

The issue of some agents was not picking requests. Mostly sequential workflows requests were stuck in a new state, even if the agent is in Running state. The AutomationEdge version is 4.0

RCA -

The requests of one of the workflows are taking a long time to execute. So other requests are pending in New state. That workflow was scheduled every 15 minutes, so in 2 days, many requests were stuck in a new state. Due to which size of SequentialWorkflowQueue in Active MQ is increased to more than 500. Therefore, the agent was unable to pick the requests which have sequential execution.

Solution -

  1. Stopped the scheduler of that workflow that is taking the time.
  2. Stopped the agent, which is of that workflow
  3. Purged the requests in SequentialWorkflowQueue in Active MQ.
  4. Restarted Active MQ
  5. Now all the requests are processing as expected

Note: Please don't assign the multiple sequential workflows to one agent, it will create the issue.


      Links to better reach 

            Bot Store

             EPD