Forum

Please note that you can subscribe to the individual forums. A subscription for news only covers the news.

Notifications
Clear all

Job deadline and duration in days  

   RSS

0

Hello,

 

How can I specify the deadline for a job, in days.

I want to make a job that is long run and last 2 or 3 days.

And the deadline for the job is 5 days from its announcement.

 

Thank you

3 Answers
0

Respite=5d
in the job.

Sven

0

Thanks Sven,

 

It took me a while to understand Respite. I ended up with something like this

[job-Awesome Task For You]
FirstInterval=4
Interval=14
Respite=5d

MinTime=3d

 

The task will be announced 9 days after last deadline. And the deadline will be 5 days after announced.

I just noted that using FirstInterval=5, Respite=5d didn't announce the task on start but after 24hours.

 

Thanks again!

 

 

0

Just a clarification.

FirstInterval decides the deadline first time the job is in the script. And yes, For FirstInterval it may be a day later. I don't remember exactly how it works, but I think that FirstInterval=4 means that 4 days are added to the current date. And then midnight is chosen as the deadline.

Interval decides the next deadline, not after the last deadline, but after the last completion.

Respite decides how long time before the deadline the job is announced. 

Sven