DataManagment job status

vijay
New Contributor III

hi,

i have a long running DM job which was triggered from ControlM using the REST API. The problem is controlM couldnt wait for the DM job completion to mark it as completed since the DMjob takes more than 2 hours to complete. Can we write a seperate function which sends back the DM job status from OneStream so that controlM can polls and check for the DM job completion. Is there an API method available which gives out the status of the DM job.

 

Thanks

Vijay

 

1 ACCEPTED SOLUTION

NidhiMangtani
Contributor III

Hi,

Can you try accessing the system database table "TaskActivity" and check for endtime for your data management sequence?

 

BhartiParyani_0-1653482449404.png

Hope this helps.

 

 

Thanks,
Nidhi Mangtani

View solution in original post

4 REPLIES 4

NidhiMangtani
Contributor III

Hi,

Can you try accessing the system database table "TaskActivity" and check for endtime for your data management sequence?

 

BhartiParyani_0-1653482449404.png

Hope this helps.

 

 

Thanks,
Nidhi Mangtani

Good point! You can do a custom SQL query on this table that filters on the status of the DM job. Then you host this query in another API and the job is job right?

Connect with me on:
LinkedIn: https://www.linkedin.com/in/nicolas-argente/
Website: https://aiqos.io
If you want to lift yourself up, lift up someone else.

Yes, I have never queried system database tables though. Please let me know if this works.

Thanks,
Nidhi Mangtani

vijay
New Contributor III

We have increased the timeout of API to  6 hours from 1 hour and it solved the 521 http error. Thanks all for your help