POST Check Job

POST /remotes/checkjob

Uses an existing remote session to query the status of submitted SLURM job 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.
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.
  • status (string) – Status for the queried job.
  • errors (string) – Error information, if any.

The following status are reported: PENDING, RUNNING, COMPLETING, COMPLETED and CANCELLED.

Sample Request

POST /remotes/checkjob

  sid: "505d0e463d5ed4a32bb6b0fe9a000d36",
  jid: 123456

Sample Response

  "jid": 123456,
  "status": "PENDING",
  "errors": ""