API that returns real-time logs of one HPC job RRS feed

  • Question

  • Hi,

    I am developing an web service related to Microsoft HPC. It will include some features like getting a job's properties, submitting a job, getting a job's logs. Some of them can be implemented by the HPC Web Service APIs. But I didn't find an API that returns the logs of a job. The logs should be like what is shown in the Activity Log tab in the HPC cluster/job manager. It will be better if it can return real-time logs.

    By the way, I am using HPC pack 2016.


    Monday, August 26, 2019 8:00 PM

All replies

  • Hi Jack,

    Do you mean you want a REST API to get job's allocation history in real time?


    Yutong Sun

    Saturday, August 31, 2019 7:50 AM
  • Hi Yutong,

    Thanks for you reply! Sorry I didn't saw it before.

    I am able to get the jobs log by the command "job view [jobid] /history", parse the output, and return it by REST API. 

    Do you have a better solution other than that?

    Thank you! I really appreciate your help!

    Wednesday, September 25, 2019 4:20 PM