POST Get Job Output

POST /remotes/get-job-output

Uses an existing remote sessions to fetch the content of a SLURM output file on a cluster. The session must have been created successfully using POST /remotes

Request JSON Object:
  • sid (string) – Unique remote session identifier.
  • jid (string) – Job ID.
  • path (string) – Path of the SLURM output file, if different from the login node.
Status Codes:
  • 200 OK – The response contains the command, its output and possible errors.
  • 400 Bad Request – The request failed due to invalid parameters or a Slycat agent issue.
  • 500 Internal Server Error – The request failed due to no Slycat agent present and configured on the remote system.
Response Headers:
  • Content-Type – application/json
  • X-Slycat-Message – For errors, contains a human-readable description of the problem.
Response JSON Object:
  • jid (int) – Job ID.
  • output (string) – Content of the SLURM output file.
  • errors (string) – Error information, if any.

Note that the path parameter is optional and the request will look for the output file within the home directory of a login node. Also, the content of the output file could potentially contain many lines of text.

Sample Request

POST /remotes/get-job-output

  sid: "505d0e463d5ed4a32bb6b0fe9a000d36",
  jid: 123456

Sample Response

  "jid": 123456,
  "output": "test",
  "errors": ""