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:[email protected]]
Sent: Wednesday, July 20, 2016 9:49 AM
To: [email protected]
Cc: [email protected]
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, <[email protected]> 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.

Reply via email to