Hello
Under the Advanced Page under program it's possible to limit execution to n-seconds, but what if I just want to stop/ kill the job at a specific time... for instance 08:00
How do I manage that??
Janus
Hello
Under the Advanced Page under program it's possible to limit execution to n-seconds, but what if I just want to stop/ kill the job at a specific time... for instance 08:00
How do I manage that??
Janus
The first thing that comes to my mind, and it may not be pretty is to setup another job that executes at 8 and kills the other. this can be accomplished in the responses tab of the new job.
Hope this helps.
Regards,
Mark
The suggestion from mgapen71 is one possibility. Another would be to have the separate job execute a "Terminate Process".
A "stop" schedule feature is being considered for the next major release of the software.
Well we're currently managing about 2000 jobs, I think it would be a little overhead to schedule another 2000 jobs just to kill the other!
When is the next release planned for?
Well, it wouldn't be nearly that bad. You would only need to setup one job per termination schedule. For instance...create one job that would handle your 8 PM termination and then in the responses tab, add each job individually that you want terminated at 8 through job control and so on. Like I said before, it may not be pretty but it should work for you in the interim of the new release.
Regards,
Mark
You can add an additional step and responce call to run another job that checks the time using a script.
if the time is within the time that you want your job to run then it will exit with a status of success and then will restart your main job via a response.
If the job fails it will exit as a failure and not restart your job. (hope this is making sense)
Here is the code that will accomplish this:
dim TimeNow
dim CompareTime
TimeNow = timer
CompareTime = 77400
'77400
If TimeNow >= CompareTime Then
Result = 1
Else
Result = 0
End If
Replies are disabled for this topic.