Normally it will complete by 2 hrs. some times due to network issues it is keep on running. So we need to Cancel programmatically not manually in Monitor UI .Do we have any Abort() or Stop ()built-ins command like informatica in Azure Synapse.
How to Cancel long Running Azure synapse pipeline programatically Via Pipeline it-self
Anonymous
Hi
My Requirement is if Azure Synapse pipeline running more than 2.45 hrs. I need cancel that pipeline Automatically/Programmatically .How to achieve this
Via Pipeline it-self
2 answers
Sort by: Most helpful
-
-
Nandan Hegde 32,026 Reputation points MVP
2023-08-09T15:27:11.34+00:00 Similar thread:
you can use the REST API :
Updated Answer :
You can follow the below flow to achieve the ask :
- at the end of the normal flow, have a set variable activity to assign a value to a variable w.r.t Pipeline status
- In parallel , have an until activity to validate whether the execution time has exceeded the timeout value or the pipeline has completed and accordingly, take the necessary actions.
below blog explains it in detail : https://datasharkx.wordpress.com/2023/09/21/auto-cancel-long-running-pipelines-within-synapse-azure-data-factory/