Skip to main content
Solved

How to get MP run status via API?

  • April 11, 2025
  • 1 reply
  • 18 views

I triggered MP using below query:

 

mutation startMonitoring {
    runMonitoringProject(projectId: "89b662a3-8ece-409f-b523-01aeba8240a2",
        partitionSettings: [
          {
            catalogItemId: "7c4993f7-bb8c-4885-a4e5-d3930d043f8e",
            partitionType: LATEST
          }
        ]
    ) {
    loadMonitoringProjectId
    }
}

 

How do I get the status of this MP whether it is failed, passed? 

I want to trigger another API query once this MP is finished. For this I need to get the status as response of this MP run. 

Any help on this?

Best answer by anna.spakova

Hi ​@Hanish N,

 

thank you for your question. There are multiple ways how to get the job status:

  • through the dqEvalProjectJob mmm node - it return the ID of the entity (your MP, the status and other properties) - you can either use the graphQL API or you can use the ONE Metadata Reader step in Ataccama API
  • through DPM API

Since you say you want to trigger another job once the MP is finished, I recommend to use the Notification handler/Subscription - it will subscribe to the event of the dqEvalProjectJob and if there is any change, it will trigger a workflow that can then run another query. You can also use the Subscription API in other tools (like Python, etc.).

https://docs.ataccama.com/one/15.1.0/one-apis/mmm-events-api.html

https://docs.ataccama.com/runtime-server/latest/workflow-and-scheduler/notifications-handler.html

Let me know if I can provide more information for any of those.

Kind regards,

Anna

 

View original

anna.spakova
Ataccamer
Forum|alt.badge.img+3

Hi ​@Hanish N,

 

thank you for your question. There are multiple ways how to get the job status:

  • through the dqEvalProjectJob mmm node - it return the ID of the entity (your MP, the status and other properties) - you can either use the graphQL API or you can use the ONE Metadata Reader step in Ataccama API
  • through DPM API

Since you say you want to trigger another job once the MP is finished, I recommend to use the Notification handler/Subscription - it will subscribe to the event of the dqEvalProjectJob and if there is any change, it will trigger a workflow that can then run another query. You can also use the Subscription API in other tools (like Python, etc.).

https://docs.ataccama.com/one/15.1.0/one-apis/mmm-events-api.html

https://docs.ataccama.com/runtime-server/latest/workflow-and-scheduler/notifications-handler.html

Let me know if I can provide more information for any of those.

Kind regards,

Anna

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings