Scenario:
I have a separate automation for dispatcher and performer. But due to some reason only one session can be used for both. First the dispatcher should run (time trigger) and create queue items. Then the performer should run (queue trigger).
Question:
I need to know whether it’s possible to run the dispatcher and performer in the same session of the VM sequentially?
If the answer for the above question is yes, then when the dispatcher creates first queue item, the performer will get triggered, but it won’t be able run as dispatcher is still running. So will the performer wait till the dispatcher completes its run ?
Yes but it won’t be in the same session. The first job will run and then close the RDP session, then the second job will be triggered, open a new RDP session and run.
Why are you trying to run them in the same session? Do you really mean session, or do you just mean same robot and/or server?
I cant comment on VM session question but i can tell you about queue trigger.
When you create queue trigger there is 1 option Minimum number of items to trigger the first job.
Here if you mention 1 then the moment even 1 queue item gets added in the queue, this queue based trigger will trigger your performer process.
Not sure if this was helpful.
While UiPath doesn’t directly support running multiple automation within the same session using triggers, here are two effective approaches to achieve sequential execution of dispatcher and performer processes using a single VM:
Approach 1: Orchestrator Queues and Triggers (Recommended)
Design Dispatcher Process:
Use a “Time Trigger” to initiate the dispatcher process at a scheduled time.
Design Performer Process:
Use a “Queue Trigger” to start the performer process whenever a new item appears in PerformerQueue .
Yes Performer job will be triggered by will be in Pennington status till the dispatcher is running. As soon as dispatcher finishes, the performer job will start running.
Definitely! just remember both will now run at same time. It will one after another. If you want both to work at same time, you will have to run them on separate machines.
Kindly mark the answer as solution as we agree that the original query got answered. This will help other members as well.