Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Job Failure checkbox for each task

Created: 12 Feb 2013 | 8 comments
SamTarr's picture
3 Agree
0 Disagree
+3 3 Votes
Login to vote

While the fail job if any task fails option is nice, it would be much nicer to have more control over that. I'd be great to have that option for each task of the job. For instance when I run an image job that contains say 15 tasks I don't want the entire job to fail if it fails on one of the first tasks in production. If it fails then I have to drop the next 10 tasks on the machine one by one. If the rest of the job doesn't rely on it I'd rather have it fail, keep going and then re run the one task that failed, not all the remaining tasks. Because of this I don't use the fail job if task fails. That being said if my image job fails on reboot to PXE or laying down the image itself I would like it to stop because there's the rest of the job is going to fail anyway. 

Comments 8 CommentsJump to latest comment

sfaucher's picture

You can already do this now by encapsulating tasks where you don't care about failure in another job that has the checkbox unchecked and running that from your main job, rather than the task directly.

For example: Job1 has tasks Task1 and Task2. You don't care if Task1 fails, but you do if Task2 fails. Make a new Job2 which has Task1 as a task and the "fail if tasks fail" checkbox unchecked. Change Job1 to have as tasks Job2 and Task2 and check the "fail if tasks fail" checkbox. Job1 will go then through successfully even if Task1 fails because Job2 is a success no matter what happens with Task1. The console even happily counts Job2 as a success in the results window but shows the number of successful and failed tasks at the end of the line so you know whether to drill down further if something fails when you don't expect it.

Shawn Faucher | Senior Technology Analyst

Armstrong Teasdale LLP
 

0
Login to vote
SamTarr's picture

That is nice to know,but it's not as easy as it should be. I may try that. It can gets more confusing if other users are looking at a job and trying to find out why it failed. They have to dig deeper and that extra step may cause them problems. 

0
Login to vote
Alex Bizjajev's picture

Hi SamTarr,

How it sounds: "Add possibility to user to set the "critical" flag to the task(s) inside the job. Job should be marked as failed if any critical task inside it has failed. Job should not be marked as failed if non-critical task(s) fails. By default all tasks inside the job are non-critical".

Will such implementation handle your case?

Also, we have already have the next suggestion: "Right now use may right-click to the failed job task-instance and select "Start Now". This will re-start whole job. I suggest to add and option "Re-run only failed tasks" or "re-run job skipping succeeded tasks"."

Thank you,

Alex.

0
Login to vote
SamTarr's picture

Yes thats exactly what I'm looking for in both cases. Thank you. 

0
Login to vote
chrismcevoy72's picture

Greater control over job/task failure is also something I would welcome.  The ability to re-run only failed tasks easily is something we are desperately seeking.  

At the moment if a job fails part way through we have to then manually create a separate job that contains just the failed tasks and then run that.  If that job then fails we have to create yet another job for those failed tasks and so on.  Sometimes it is just easier to re-run the original job from the start, but this wastes a lot of time (particularly for an image deployment job).

I believe the option to just re-run failed tasks was precent in DS6.9 but somehow ommitted in DS7.x.  Please put it back!

 

+1
Login to vote
MichaelCiv's picture

"Add possibility to user to set the "critical" flag to the task(s) inside the job. Job should be marked as failed if any critical task inside it has failed. Job should not be marked as failed if non-critical task(s) fails. By default all tasks inside the job are non-critical". would be perfect!

0
Login to vote
Alex Bizjajev's picture

This feature request has been logged and now tracked by Task Management team.

Thank you,

Alex.

0
Login to vote
SamTarr's picture

Thank you!

0
Login to vote