cancel
Showing results for 
Search instead for 
Did you mean: 

Can we kill a job/chain if while running it crosses a clock time eg: 17:50 CET

0 Kudos

Can we kill a job/chain if while running it crosses a clock time eg: 17:50 CET, Help will be greatly appreciated

Accepted Solutions (0)

Answers (1)

Answers (1)

gmblom
Active Contributor
0 Kudos

Hello,

You can add a Runtime limit of type Maximum. Make it of type expression and specify something like this:

=Time.getUTCMilliSeconds(Time.expression(Time.now('CET'), 'truncate day set hour 17 set minute 50')) - Time.getUTCMillisecondsNow()

Regards Gerben

0 Kudos

Hi Gerben,

This expression is killing the job that is being scheduled/running after/at 17:50 CET, I just need to cancel the job that is running and crossing 17:50 CET mark and after that when the job scheduled for next time it can run successfully.

Thanks for your help.