Job Activity Log via RESTful API RRS feed

  • Question

  • I have been unable to find a RESTful API that enables us to retrieve the Job Activity Log (job view <jobId> /history). Is this available?


    Wednesday, January 8, 2020 3:57 PM

All replies

  • Hi Phoenix

    We have no such REST API to get history activities of a job.

    However, you can listen to live job/task activities/events by SignalR. Here it is:


    Though the document is in C#, SignalR also has JavaScript client and the procedure is similar:


    Please also note the SignalR version: You should use version 2, which is not the latest version in .Net Core.

    What's more, you can get the job CreateTime, SubmitTime, StartTime, and EndTime by Web API "GET /hpc/jobs/{id}".

    Monday, January 13, 2020 2:50 AM
  • Thank you RobertZhang. I have three questions:

     - Is the version of SignalR used compatible with the Java client? Our client is Java based.


     - If we add a listener after a job is finished, will the events from the start be propagated to us? If not, this solution would require us to add listeners for all jobs and collect all the logs locally, which may be prohibitive for us.

     - Is adding a call to provide the logs something that might be added in the future to HPC Pack?

    Monday, January 13, 2020 9:20 PM