01-11-2018 01:06 PM
We often send an email in our pipelines have certain errors, and we also have a lot of Tasks that drive the same pipeline(s) but with different params.
So it would be very helpful if when could send the name of the Task that started a failed pipeline within the email, making triage much more expedient and perhaps easier.
Is there and expression function/property that yields information about the Task? I may be missing something in the docs, but I have failed to find anything close.
Thanks,
TK
03-02-2022 03:39 AM
With the pipeline monitoring API, you can get the invoker of the pipeline which in this case is the task that called the pipeline. Please refer to the following documentation how to call the API: Pipeline Monitoring.
Once you execute the API, you should be able to see a field called invoker_name
( found in $entity.response_map.invoker_name
)