Start job activity - delay befor starting?

Hello,
I have a job that restarts the machine due to an error. I want to start a new job afterwards with the job start activity, but I need a delay before the new job starts. Otherwise, the new job starts immediately and does not wait for the machine to restart. So an error occurs.

I have tried creating an item in a queue that has a trigger, but that would also start immediately, or does not work with a deferred item.

Thank you very much for your help!
Moritz

1 Like

Hello @mm1904 ,

So in the new job can you add some wait for element exists approach to wait for some time. Else if you are going with Queue based trigger, then maybe you can try the postpone feature of queue item.

Hey @mm1904

What’s the ideal time for restarting the machine here…

Also, if you are gonna run the job in the same VDI machine robot what I guess is it will go to pending and once the robot service is available after restart the job start and runs.

Thanks
#nK

Hey @Rahul_Unnikrishnan and @Nithinkrishna ,
thanks for your answers.

The problem is, that after the restart-job the orchestrator starts the next job immidieatly, not after the restart. Some seconds later, the machine restarts and the UiPath-robot-service stops with an error. So the new job fails and won’t start after the machine restart. If I do a delay in the restart job, this job will end with an error, as the UiPath-robot-service is terminated.

And I don’t want to produce errors if I can avoid that.

Moritz

1 Like

Hey @mm1904

Could you please show that error once ?

Thanks
#nK

Hello @Nithinkrishna ,
the error is like this:
grafik
“The job stopped with unexpected error 0x40010004” This error code is quite normal when a program is terminated by windows shutdown, I think: windows - In which cases does program exit with 0x40010004 code? - Stack Overflow

The job no. 1 restarts the machine,
no. 2 was started by no. 1 and is only build to be hit by the error.
no. 3 was also started by no. 1 and run after the restart.


But I don’t like to have a no. 2 and get an error.

Regards, Moritz

1 Like