Detect hanging child job through main job
Moderators: chulett, rschirm, roy
Detect hanging child job through main job
Is there a way to detect hanging child job from main sequence job? I have main sequence job which calls multiple jobs in a sequence. I am expecting each job to finish in X number of minutes. I want to send e-mail to support group if job does not finish in 2X minutes. I am looking for something like timeout parameter where you can define the number of minutes for the job to finish and if it does not finish then you should be able to trigger the event.
-
- Participant
- Posts: 3337
- Joined: Mon Jan 17, 2005 4:49 am
- Location: United Kingdom
One option ....
After each job, copy / move a blank (e.g. using touch command) in a given area. Just before calling the job, activate a 'wait-for-file' for the result file to appear. If the job completes, it will. Othewise not.
Alternatively, the real solution is .....
to store the process metadata in a table and keep polling using a separate job which can compare the timings.
After each job, copy / move a blank (e.g. using touch command) in a given area. Just before calling the job, activate a 'wait-for-file' for the result file to appear. If the job completes, it will. Othewise not.
Alternatively, the real solution is .....
to store the process metadata in a table and keep polling using a separate job which can compare the timings.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: