Please help me to understand what should happen in the following scenario…
Job A is scheduled to run every 1 hour and is set to run on dynamic allocation of one of 2 server, server 1 and server 2.
Job runs at 10am and is dynalically allocated to run on server 1.
Job takes 3 hours to complete.
Next scheduled run is for 11am.
At 11am would you expect the Job to run now on server 2 meaning Job A is now running on both servers or would you expect the 11am run of Job A to not start and wait for the run on server 1 to complete first?
I think actually it can trigger two jobs, with one robot assuming the robot is configured to allow it to run multiple jobs at the same time on different machines.
There is too little information here to say what will happen, as there are a ton of settings to control this so it works very differently depending on the robot settings, trigger settings etc etc.
yes the job will be triggered on second server, because (I believe) there is not check in your process for job status.
You can refer the this post, if you dont want to trigger the job on second server if it is already running on first server. It is going to be API call to Orch for get the running job detail.
If you have the robot able to run multiple jobs and two machines (I believe them being connected via the same machine template or not is not a factor) and the trigger set up to allow multiple jobs to be triggered then it will run on both machines.
You can try it out by manually starting a job and allocating it specifically to the same user, same machine template but different host machines.
I actually had the opposite problem where I only wanted something to run on one machine, in sequence, and someone added stuff and made it run in parallel on the same user and mess things up
That additional information does indeed confirm, it will run the second job on the second machine.
My post above shows some ways to limit it.
Now you have shown its a time trigger that also sheds light on the behaviour, there is not control in a time trigger to not start multiple jobs like there is in a queue trigger.