How to set execution target for 'Queue' trigger type?

Hi All,
Does anyone know if it is possible to set execution target with ‘queue’ trigger type as it can clearly set for ‘time’ trigger type?

Queue triggers are available in orchestrator have a look on the link below

Thanks Sreelatha278,
I did look through the doco, but can’t seem to find if its possible to set execution target for ‘Queue’ trigger type.

Can you elaborate your question. what is the exceution target.

whenever item adds to queue, we can trigger a job as shown below.

Thanks Sreelatha278,

For Time Trigger, there is a tab for Execution Target setting, however, this tab seems not open for Queue Trigger.

Even though more than one robots are defined in one environment, sometimes we need each of the robot to run specific jobs… So I am just curious about how to select Specific Robots like Time Trigger…

1 Like

@loginerror
@Pablito
Help us how to choose specific robot in queue trigger.

Our team also needs this feature to select Execution Target (specific robots where to run the process) for the Queue Trigger.
It looks like the Orchestrator 2019.10.14 does not allow that. So we have to use the “Time Trigger” to schedule jobs that must run on specific robots. Which is not optimal to utilize these robots capacity.

Queue trigger does not support specific robots. Any free robot within the environment will pick up the job.

This is not a good design. We should be allowed to choose a specific robot, just like for time triggers.

It is always good design to let your users have all possible options, and let us choose how to use things. Artificial limitations will always impact someone negatively.

Bandita,
Example when it is not applicable:
-External system A allows to use one user account for one session only. Therefore, separate user accounts must be used for for for processes running simultaneously.
-We must run 3 instances of the process that logs into system A.
-We have 3 user accounts for system A available and have Orchestrator assets with user account credentials assigned to 3 specific robots.
-Currently we have Time trigger to start the process on these 3 robots simultaneously, approximately when the new items should be available in the Queue the process consumes.
-Using multiple environments is not feasible, because:
– We have dozens of processes that we upload to Orchestrator from TFS Release pipeline through Orchestrator API and use the same environment
– There are different systems alike System A that we have 2 to 5 accounts available and set as credentials on different robots.
– Setting specific machines once in a trigger is more manageable than joggling multiple environments.

Please consider adding execution target for Queue Trigger type, like you have for Time Triggers.

Thank you,
Janis

In the upcoming 20.4 the user and machine will separated. On a trigger you’ll be able to select the user but not the machine. Will this be fine?

Badita,
No, that would not be very helpful in our scenario, since we use one user account to run unattended processes on all machines.

Ok, so you’re using one user windows account for all the machines.
You have 3 different credentials for app login which can’t be used simultaneously.

In the future we’re thinking of implementing something like a credential locker… which has an workaround (see below):

  • create a queue Q containing 3 items of datatype string: “cred1”, “cred2”, “cred3”:
  • before logging into your third party app do GetQueueItem(Q). This will lock “cred1”. the next job will use “cred2” since “cred1” is “in progress”.
  • when finishing the job and logging out from app put “cred1” back into the queue

Would this work?

1 Like

@JanisK the workaround I ended up implementing is create a new environment with the one robot you want to run on. Create the process in the new environment and schedule use the new process. does that work in your situation?

@LeoRX Thanks! Unfortunately this approach would not work for us because we use the same environment for all processes.
This is why we want to keep the same environment:
We define the environment name in TFS Release Pipeline and deploy the processes to Orchestrator through its API from TFS Release. We use TFS to build nuget package and release it to each environment. We use the same template for every new project. Managing multiple environment names in TFS would make it much harder to manage.

1 Like

Sorry @badita, I haven’t noticed your response till now.
Yes, that Credential Locker might be a great feature and could help to mitigate the issue I described.
Thanks!

1 Like

We understand but this approach does not scale. Using one environment means you need to use specific robots schedules… which will end up in a management “hell” with large number of bots.