skip to Main Content

I have a logic app query to get the details of long running pipelines and I sending the email with the pipeline names. Now I want to cancel those pipelines which are running for long time how Can I implement with Logic app ?

2

Answers


    • There is an action available directly in logic apps "Azure data factory" connector. The following is an example where you can cancel a pipeline run.

    • The following is the flow of the logic app that I am using:

    enter image description here

    • The pipeline run is cancelled as shown in the below image:

    enter image description here

    • And a mail will be triggered as shown in the below image:

    enter image description here

    • If you want to get the pipeline runs dynamically, you can use the rest API specified in this Microsoft documentation.
    • You can loop through this list and check for whose status is "InProgress" and get the current running time to check if its long enough to cancel.
    Login or Signup to reply.
  1. If the intend is to cancel a long running ADF pipeline , you can do that from ADF only ( using a different pipeline)

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search