I am running a sequence job which starts with extract (unix script) and if extract fails I want to change the job status to "failed". Right now, even if the extract fails, the job sends out email and job status is "finished". How do I make it fail when extract fails.
Thanks,
-Sam
Change Job Status
Moderators: chulett, rschirm, roy
Re: Change Job Status
Use an Exception Handler, with the job properties set to 'Automatically Handle Failures'. Connect it to a Notification and then to a Terminator stage. You should be good. Alternatively, use the Failed Trigger to Notify and then call UtilityAbortToLog.its_me48 wrote:I am running a sequence job which starts with extract (unix script) and if extract fails I want to change the job status to "failed". Right now, even if the extract fails, the job sends out email and job status is "finished". How do I make it fail when extract fails.
Thanks,
-Sam
gateleys
Re: Change Job Status
Thank You !!
gateleys wrote:Use an Exception Handler, with the job properties set to 'Automatically Handle Failures'. Connect it to a Notification and then to a Terminator stage. You should be good. Alternatively, use the Failed Trigger to Notify and then call UtilityAbortToLog.its_me48 wrote:I am running a sequence job which starts with extract (unix script) and if extract fails I want to change the job status to "failed". Right now, even if the extract fails, the job sends out email and job status is "finished". How do I make it fail when extract fails.
Thanks,
-Sam
gateleys