05-24-2022 06:16 PM
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
Solved! Go to Solution.
05-25-2022 08:41 AM
Hi,
Can you try accessing the system database table "TaskActivity" and check for endtime for your data management sequence?
Hope this helps.
05-25-2022 08:41 AM
Hi,
Can you try accessing the system database table "TaskActivity" and check for endtime for your data management sequence?
Hope this helps.
05-25-2022 03:07 PM
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?
05-25-2022 03:20 PM
Yes, I have never queried system database tables though. Please let me know if this works.
05-25-2022 04:35 PM
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