How to reset the job if any job fails in project ?
Moderators: chulett, rschirm, roy
How to reset the job if any job fails in project ?
Hi All,
I have a requirement like i want to reset the job if any job fails during the execution(system crash etc) in entire project?
my reqirement is
if any distaer happens my jobs are in abort status, so i want to reset all the jobs at a time?
Any idea?
thanks,
Vijay
I have a requirement like i want to reset the job if any job fails during the execution(system crash etc) in entire project?
my reqirement is
if any distaer happens my jobs are in abort status, so i want to reset all the jobs at a time?
Any idea?
thanks,
Vijay
vijayakumargoud
While not trivial, it is not difficult to implement. I would write a job sequence or shell script that retrieves the list of all jobs in project (using DSGetProjectInfo() or a dsjob call) and then, for each job, check the status and issue a reset call if that job state is aborted.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 892
- Joined: Thu Oct 16, 2003 5:18 am
-
- Premium Member
- Posts: 54
- Joined: Thu Oct 18, 2007 4:20 am
- Location: Chennai
-
- Premium Member
- Posts: 54
- Joined: Thu Oct 18, 2007 4:20 am
- Location: Chennai
Give it a go - either through BASIC code or through scripting with dsjob and if you get stuck post your question to this thread. The general concensus here is that everyone is willing to supply assistance when people get stuck, but providing complete solutions is what many here get paid to do in our "real lifes" so it is unlikely that we'll do it here for free.
The corollary to the comments above which I use as my "acid test" of whether or not to respond is that if a poster hasn't put any effort into looking for a solution then I won't, either.
Back to the original question: there are 2 paths mentioned, so give one a try and post back here if you get stuck or have questions. But don't expect a complete solution to this non-trivial question.
The corollary to the comments above which I use as my "acid test" of whether or not to respond is that if a poster hasn't put any effort into looking for a solution then I won't, either.
Back to the original question: there are 2 paths mentioned, so give one a try and post back here if you get stuck or have questions. But don't expect a complete solution to this non-trivial question.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>