You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@oozie.apache.org by yo...@bt.com on 2016/07/20 13:04:26 UTC
Co-ordinator Failure Email
Hi,
I have a co-ordinator job that is supposed to run every 24 hours, as long as a trigger file exists. If the trigger file isn't present, how do I send a failure email? I am able to send failure emails if any of the workflow actions fail but I am not sure how to send such an email in the presence of a missing trigger file.
Cheers,
Yonathan
RE: Co-ordinator Failure Email
Posted by Anup Agrawal <av...@impetus.com>.
There could be two simple solution:
Write a decision as first action and check if trigger file exist (use fs:exists). If it exist then continue the execution else send the control to fail mail action. Only disadvantage of this approach is that you will not to re-run the same job once trigger file will be available.
Write a shell script to check the status of trigger file. If file exist exit with 0 else exit with 1. Your exit status 1 will fail the action and you can rerun the job later.
-----Original Message-----
From: Wei Yan [mailto:ywskycn@gmail.com]
Sent: Wednesday, July 20, 2016 9:49 AM
To: yonathan.maalo@bt.com
Cc: user@oozie.apache.org
Subject: Re: Co-ordinator Failure Email
Adding a SLA config in the coordinator may solve your issue, like
<sla:should-start>${60
* MINUTES}</sla:should-start>.
On Wed, Jul 20, 2016 at 6:04 AM, <yo...@bt.com> wrote:
> Hi,
>
> I have a co-ordinator job that is supposed to run every 24 hours, as
> long as a trigger file exists. If the trigger file isn't present, how
> do I send a failure email? I am able to send failure emails if any of
> the workflow actions fail but I am not sure how to send such an email
> in the presence of a missing trigger file.
>
> Cheers,
>
> Yonathan
>
________________________________
NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
Re: Co-ordinator Failure Email
Posted by Wei Yan <yw...@gmail.com>.
Adding a SLA config in the coordinator may solve your issue, like
<sla:should-start>${60
* MINUTES}</sla:should-start>.
On Wed, Jul 20, 2016 at 6:04 AM, <yo...@bt.com> wrote:
> Hi,
>
> I have a co-ordinator job that is supposed to run every 24 hours, as long
> as a trigger file exists. If the trigger file isn't present, how do I send
> a failure email? I am able to send failure emails if any of the workflow
> actions fail but I am not sure how to send such an email in the presence of
> a missing trigger file.
>
> Cheers,
>
> Yonathan
>