cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch runs from cluster id in api

talha
New Contributor III

Task to achieve: We have cluster id and want to fetch all runs against it.

Currently I have to get all the runs, iterate through it and filter out the runs with the required cluster id.

Similarly if I want to fetch all the runs that are active?

3 REPLIES 3

Debayan
Esteemed Contributor III
Esteemed Contributor III

Hi,

Thanks for reaching out to community.databricks.com.

You can list a single job runs running in a job-cluster through this API : https://docs.databricks.com/dev-tools/api/latest/jobs.html#operation/JobsRunsList.

If you are looking for an API for an All-purpose cluster , as of now, we do not have a cluster API (all-purpose cluster) to get all the runs in that cluster.

Vidula
Honored Contributor

Hi @Muhammad Talha Jamil​ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

talha
New Contributor III

Wasn't able to resolve but got clarification that api does not exist. Thanks

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.