How to start a job on the same agent of the activating job?

Discussion created by MarcoTizzoni604411 on Dec 6, 2017
Latest reply on Dec 7, 2017 by MarcoTizzoni604411
I have two jobs  (Job 1 and Job 2) that run on a host group, say with two agents: agent A and agent B.

From time to time Job 1 hangs and it's ended because it exceeded the Maximun Runtime (MRT). Then I need to run Job 2 on the same agent where Job 1 was running and restart Job 1 when Job 2 ends.

If I configure Job 2 to be activated by Job 1 in the General-> Running -> MRT section it may run on a different agent. The same happens when I activate Job 2 in the post condition of Job 1.

Any hints on how to do that?