I have a request from one of our business units to send a failure notification if any of the tasks in a job fail, but if none of the tasks fail, send a success message.
Job consists of 5 copy steps
Task1: Copy FileA to Destination A
Task2: Copy FileB to Destination B
Task3: Copy FileC to Destination C
Task4: Copy FileD to Destination D
Task5: Copy FileE to Destination E
I have a Generic Notification that is enabled for all 5 tasks upon failure of any kind, and these work. This notification is to be used for any failures for jobs that this Business Unit wants notifications on, so the message i'm sending is identical to other BU's notifications aside from the Recipeient list.
=========================
The following Job/Task had an issue. Contact "Tech Support" with the following information:
JOB NAME: {JOB(Active|Name)}
TASK NAME: {TASK(Active|Name)}
SERVER NAME: {COMPUTER(Name)}
=========================
However, I want to also have an "Overall Job" success email sent out if the entire job (all 5 tasks) were successful. If ANY of the 5 tasks failed and sent a notification, I need to NOT send the Success.
I tried adding a 6th task that has a Condition that says Previous Job status = 0, but that doesn't appear to do the trick. They got a failure AND a success today when one of the 5 steps failed.
Anyone have a suggestion on how to do this using an equally generic Success message and/or simple generic Condition that other jobs could use regardless of the number of tasks?
Really, what i'm trying to avoid is putting a very large number of job-specific conditions in the 'Conditions' list. It is messy to me. I see no way to make Job specific conditions not show up as something you can choose for other jobs, so I didn't go the specific condition route.
Brian
Edited by user
2012-11-08T14:54:54Z
|
Reason: Removed my e-mail address from the description, somehow it got added.