
So I have complex requirement for PAD queuing:
Ideally per my understanding the first bot should start and after finishing each item, should be able to check if in that machine run queue is high priority work queued, if yes, then log off, create for itself new run queue item and give resource for high priority item.
But so far I haven't figured out how to orchestrate that.
Adding first bot items one by one to run queue would create huge amount of unnecessary login/logoff's...
Any ideas?
Assuming your second bot is also a desktop flow (because otherwise you wouldn't need to orchestrate stuff anyway), you can make your first bot run the second bot via the Run desktop flow action. Then have your second bot process all queue items in its queue every time it runs via the Process work queue items action (assuming you're using the new work queues for orchestration). When the second bot is done (even if it has nothing to process) it will come back to the first bot, as it will be waiting for the second bot to complete.
So, the idea would be somewhat like this:
You should then obviously make your cloud flows also able to call bot #2 independently, so that it can also run when bot #1 is not running. Simply make your cloud flow run it whenever it is triggered. It would get queued if bot #1 is running, but it won't fail if it has nothing to process.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.