User Tools

Action disabled: source

Back to JESS API

Get JESS Job Status


Use GET /job/status/<job_id> to retrieve the status of the selected job


Synopsis

Return object

A successful GET /job/status transaction returns an object containing the current status of the job of the given id.

{
    "ok": true,
    "status": "12249 status available",
    "data": {
        "id": 12245,
        "progress": "12, 0, 0, 0, 0, 0, 12",
        "cancel_Flag": false,
        "job_ID": 12249,
        "status": "FINISHED",
        "completion_Time": 1607777765357,
        "status_Info": "Job finished. Results collected into tables.",
        "last_Update": 1607777765395
    }
}

Not accessible

If the given job id does not exist or is not accessible to the user, a “not accessible” response will be returned.

{
    "ok": false,
    "status": "Job 12250 is not accessible to user yi@jeplus.org",
    "data": null
}

Example using curl://

Send the /user command using curl:

curl -b cookies https://api.ensims.com/jess_web/api/job/status/12249

On success, the user's account details will be returned in a JSON object. If the existing JWT is invalid, an HTTP 401 Unauthorized code will be returned.

Example using Python Requests

Make sure Requests is correctly installed in your Python environment, and run the following lines:

import requests

# Existing cookies are expected to be stored in the variable 'cookies'
r = requests.get('https://api.ensims.com/jess_web/api/job/status/12249', cookies=cookies)

# Show returned object  
r.json()


Site Tools