'How to Monitor pipeline a from pipeline b in azure datafactory

I have 2 pipelines, A and B.

I want to monitor the current status of A from B. If A is currently running then do not run B, but if A is already completed or did not run then start pipeline B.

This should be done in Azure Data Factory.

How can I approach this?



Solution 1:[1]

you can use the REST API to check for the status :

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/queryPipelineRuns?api-version=2018-06-01

docs.microsoft.com/en-us/rest/api/datafactory/pipeline-runs/query-by-factory

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Nandan