Skip to main content
Sridhar Yadlapalli
Navigator | Tier 3
Navigator | Tier 3
October 24, 2023
Solved

Queue and WLM

  • October 24, 2023
  • 2 replies
  • 231 views

Hi, 

Good day,

  1. I have a bot that needs to work with a queue. After completing all the queue items, I have to perform consolidation. Now, how can I determine the queue status to know if it's the last work item?

  2. Additionally, I have an application that experiences downtime every day from 10 AM IST to 12 PM IST. When the bot, which is implemented to work with the queue, reaches this particular time, the work items should not be processed Since the Application will be down. Once the downtime until 12 PM IST is over, the bot should resume from where it left off.

 

Thanks,

Sridhar

 

Best answer by ravi.pothana

Hi @Sridhar Yadlapalli,

  1. You can leverage Workload Management API’s to know the status of work items in a queue. 
    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/wlm-api-supported.html#tag/Workitems/paths/~1queues~1%7Bid%7D~1workitems~1list/post
  1. Usually, a queue is processed when a work item is added. To restrict the time slots within which a queue will be processed, you can set the queue running time.
    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/workload/cloud-run-bot-with-queue.html#:~:text=Set%20the%20queue%20running%20time

2 replies

Automation Anywhere Team
October 24, 2023

Hi @Sridhar Yadlapalli,

  1. You can leverage Workload Management API’s to know the status of work items in a queue. 
    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/wlm-api-supported.html#tag/Workitems/paths/~1queues~1%7Bid%7D~1workitems~1list/post
  1. Usually, a queue is processed when a work item is added. To restrict the time slots within which a queue will be processed, you can set the queue running time.
    https://docs.automationanywhere.com/bundle/enterprise-v2019/page/enterprise-cloud/topics/control-room/workload/cloud-run-bot-with-queue.html#:~:text=Set%20the%20queue%20running%20time
Sridhar Yadlapalli
Navigator | Tier 3
Navigator | Tier 3
October 24, 2023

Thanks @ravi.pothana 

  1. I understood that it is possible to get the status of the Work item using API’s, also is there any way of approach to Know the Last Work item in the Queue?
Sridhar - Technical Lead