Jobs

JA
Last updated 4 months ago

get
Get List of Jobs

https://sharedcloud.io
/api/v1/jobs/
This endpoint allows you to get the list of jobs
Request
Response
Headers
Authorization
required
string
Authentication token
200: OK
List of jobs successfully retrieved.
[
{
"uuid": "71045bdd-843d-401b-8d44-b8c4b4213042",
"current_server_time": "05-10-2018 16:02:02",
"function_name": "mnist",
"duration": 20,
"started_at": "05-10-2018 13:20:14",
"assigned_at": "05-10-2018 13:20:14",
"created_at": "05-10-2018 13:20:13",
"finished_at": "05-10-2018 13:20:35",
"incremental_id": 0,
"status": 3,
"arguments": "(512, 0.2, 10, 2)",
"cost": 0.08,
"build_logs": "...",
"stdout": "...",
"stderr": "...",
"result": "0.9755",
"instance": "504d2418-4c94-429d-8e4a-ccde12988c8b",
"run": "9d192068-2201-4aa6-9428-fcb26ee11a35"
}
]
401: Unauthorized
Invalid credentials.
{
"detail": "Invalid token."
}

get
Get Job

https://sharedcloud.io
/api/v1/jobs/:uuid/
This endpoint allows you to get a single job
Request
Response
Path Parameters
uuid
required
string
uuid of the job
Headers
Authorization
required
string
Authentication token
200: OK
Job successfully retrieved.
{
"uuid": "710b1bdd-813d-411b-8144-b1c4b7213042",
"current_server_time": "05-10-2018 16:02:02",
"function_name": "mnist",
"duration": 20,
"started_at": "05-10-2018 13:20:14",
"assigned_at": "05-10-2018 13:20:14",
"created_at": "05-10-2018 13:20:13",
"finished_at": "05-10-2018 13:20:35",
"incremental_id": 0,
"status": 3,
"arguments": "(512, 0.2, 10, 2)",
"cost": 0.08,
"build_logs": "...",
"stdout": "...",
"stderr": "...",
"result": "0.9755",
"instance": "504d1818-9194-419d-8e2a-cbde19988c8b",
"run": "9d199b68-b211-4a16-9198-fcb26ee11a35"
}
401: Unauthorized
Invalid credentials.
{
"detail": "Invalid token."
}
404: Not Found
Job not found.
{
"detail": "Not found."
}