cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Is it possible to capture the name of the task that executed a pipeline at runtime?

tk42
New Contributor III

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

10 REPLIES 10

@nickshore,

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 )

image