cancel
Showing results for 
Search instead for 
Did you mean: 

DataManagment job status

vijay
New Contributor

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

BhartiParyani
Contributor

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,
Bharti Paryani

View solution in original post

4 REPLIES 4

BhartiParyani
Contributor

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,
Bharti Paryani

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?

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

Thanks,
Bharti Paryani

vijay
New Contributor

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