I need to send an email whenever my pipeline runs longer then 10mins. For sending mail I am using logic app but how to check if the time exceeds then 10mins? How can we check and do this in the pipeline itself? Can anyone kindly help me on this
I need to send an email whenever my pipeline runs longer then 10mins. For sending mail I am using logic app but how to check if the time exceeds then 10mins? How can we check and do this in the pipeline itself? Can anyone kindly help me on this
2
Answers
To send mail if ADF Pipeline runs more then 10min use Wait activity in parallel of your main pipeline and set the time to wait in seconds for 10 min(600 sec) in wait activity
After that with the Rest Api get the status of pipeline through web activity.
Then in the If activity the status of pipeline run is In Progress with expression
@equals(activity('Web1').output.value.status,'In progress')
then send the mail using web activity(logic app)refer this SO answer to more unerstanding on rest api with web activity
You can follow the below flow to achieve the ask :
below blog explains it in detail :
https://datasharkx.wordpress.com/2023/09/21/auto-cancel-long-running-pipelines-within-synapse-azure-data-factory/
Rather than pipeline cancellation, you can use logic app to trigger email