cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Stop on a Job

rsamora
Level 5
Certified
Is there a way to create a hard stop time on a schedule?  I know how the backup window works but that just keeps the job from requeueing after the window closes.  But here's what I am looking for: 

A job starts writing at 3:00 AM and typically takes 2 hours to run.  But if for some reason the job runs long, I DO NOT want it to stay active beyond 7:00 AM.  I don't care if the job is making fresh coffee, baking donuts, and keeping my desk chair warm until I get to the office, I do not want to see it running after 7:00 AM.

Is that possible?
1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified
No , there is no way in NBU to automate a hard stop.
You can run a script to check for active jobs and kill them. Put this in the O/S scheduler (cron on Unix).
As long as you realize that the entire job will be discarded and data already written up to that point cannot be restored.
Successful backup should be more important that a bit of an overrun...

View solution in original post

2 REPLIES 2

Marianne
Level 6
Partner    VIP    Accredited Certified
No , there is no way in NBU to automate a hard stop.
You can run a script to check for active jobs and kill them. Put this in the O/S scheduler (cron on Unix).
As long as you realize that the entire job will be discarded and data already written up to that point cannot be restored.
Successful backup should be more important that a bit of an overrun...

rsamora
Level 5
Certified
That's what I was guessing so now I know for sure.  Have a great weekend.