โ08-12-2021 01:41 AM
Hello everyone,
Iโm trying to figure out is there a way to send notifications via email on errors without SMTP server as I do not necessarily need to attach files or error documents? Like the notifications that are sent on tasks execution.
I have a parent pipeline with 3 child pipelines. The parent pipeline is triggered by cron task. And what I want is to be notified when one of the child pipelines fails, but the parent pipeline proceeds without stopping.
The cron task for the parent pipeline is configured to send emails on errors and something similar I want for the child pipelines. So I tried to use โTask Executeโ instead of โPipeline Executeโ (and created separate tasks) to trigger the child pipelines, but when a child fails, and โTask Executeโ snap is configured to discard and continue or route to error view (since I wish the parent pipeline to proceed) the task doesnโt send notification .
In general, I planned to use โSend Emailโ snap for error pipeline and that would satisfy our needs, but for now my colleagues are trying to figure out which SMTP server to use when we are using cloudplex. Thatโs why I hoped there is some workaround for now, since the problem seems to be a trivial one.
Any help is highly appreciated!
Sergey.
โ08-12-2021 01:58 AM
@svparhom You can try to use Exit snap and use Threshold limit as 1 in your child pipeline. It will throw error explicitly.
โ08-12-2021 03:17 AM
Hello @Supratim , thank you for your reply!
I actually discovered that at the first place the error failing the whole process was โPipeline has no unlinked input views, but there is input dataโ for the child pipeline, which is weird, because there is no parameter or input data for that pipeline. Anyway, I opened one input view, and now the situation is opposite - the child task wonโt send notification on failure when the โTask Executeโ is configured to discard and continue or route to error view. Updated my question respectively.
By the way, I also tried to use โExitโ - didnโt helpโฆ
โ08-23-2021 06:40 AM
So I couldnโt find a solution and reached out the support and they provided me with one.
Turned out that there is no straightforward solution, so it was proposed to create one extra task, which is triggered from the error pipeline by โREST getโ snap when an error occurs in a child and runs some pipeline that always fails, like generation of an improper JSON with โJSON Generatorโ snap.
In this way, that extra task fails and sends notification.
As the result, I can use โPipeline Executeโ instead of โTask Executeโ in the parent pipeline for triggering the child pipelines.