Forum Discussion

vijay's avatar
vijay
New Contributor III
3 years ago

DataManagment job status

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

 

  • Hi,

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

     

    Hope this helps.

     

     

  • Hi,

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

     

    Hope this helps.

     

     

    • NicolasArgente's avatar
      NicolasArgente
      Valued Contributor

      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?

      • NidhiMangtani's avatar
        NidhiMangtani
        Contributor III

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

  • vijay's avatar
    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