I have a mutli step SQL Server job that when one of the steps fail an alert needs to be sent out, however the job can't fail on this step it needs to continue. I have tried a trigger on sysjobshistory but that has gotten kind of ugly. So for example:
3 step job
step 1 completes goes to step 2
step 2 fails (need alert to go out now) continues to step3
step 3 succeeds job is complete
I need the alert to go out when step 2 fails, not at job completion, some of these steps take quite a while.