Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
Matthew_G
Advocate I
Advocate I

Get Pipeline Run Status

Hi everyone,

 

I have a pipeline that imports data from on prem sources using the copy data activity.

I log the source as running in order to prevent it from being picked up again in the next run (parallel pipeline executions) however if the pipeline is cancelled it wont recover from this - if it fails I can log the failure and retry but I can't log a cancelled run.

 

How would I be able to log when a run is cancelled or how can I get a list of past runs and the status of those runs?

 

I see that you can use the fabric APIs to get the status of a run, if you know what the pipeline run id was:

https://api.fabric.microsoft.com/v1/workspaces/{workspaceid}/items/{pipelineid}/jobs/instances/{pipelinerunid}
How can I get a list of historical pipeline runs and their statuses?
 
Kind Regards,
Matthew 
2 REPLIES 2
v-kongfanf-msft
Community Support
Community Support

Hi  @Matthew_G ,

 

You can use below rest api to get query activity runs record.

POST https://api.fabric.microsoft.com/v1/workspaces/<your WS Id>/datapipelines/pipelineruns/<job id>/queryactivityruns

vkongfanfmsft_0-1724051583135.png

 

For more details, you can refer to below document:

Fabric data pipeline public REST API (Preview) - Microsoft Fabric | Microsoft Learn

 

Best Regards,
Adamk Kong

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi!

 

while I was trying this rest api , I am getting response 200 but it is returning empty list as output any idea why am I getting this!?

 

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

November Update

Fabric Monthly Update - November 2024

Check out the November 2024 Fabric update to learn about new features.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.