Jobs
Cedana API for legacy jobs
Supports filtering by ids and/or jids (comma-separated lists)
Comma-separated list of checkpoint UUIDs to filter by
Comma-separated list of job IDs to filter by
Returns checkpoints
Invalid query parameters
Failed to connect/fetch from database
Client error
Server error
GET /v1/cedana/job/checkpoints HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"ID": "text",
"JID": "text",
"Path": "text",
"Size": 1,
"Time": 1
}
]Checkpoint created or updated successfully, returns the generated checkpoint ID
Invalid request payload
Failed to execute request against database
Client error
Server error
PUT /v1/cedana/job/checkpoints/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"ID": "text",
"JID": "text",
"Path": "text",
"Size": 1,
"Time": 1
}textCheckpoint deleted successfully
No content
Invalid UUID
Failed to delete checkpoint
Client error
Server error
DELETE /v1/cedana/job/checkpoints/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Use query params to filter jobs. Supports filtering by jids or host_ids (comma-separated lists)
Comma-separated list of job IDs to filter by
Comma-separated list of host IDs to filter by
Returns jobs
Invalid query parameters
Failed to connect/fetch from database
Client error
Server error
GET /v1/cedana/jobs HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"Details": null,
"JID": "text",
"Log": "text",
"State": {
"Cmdline": "text",
"GIDs": [
1
],
"GPUEnabled": true,
"Groups": [
1
],
"Host": {
"CPU": {
"Count": 1,
"Family": "text",
"PhysicalID": "text",
"VendorID": "text"
},
"Hostname": "text",
"ID": "text",
"KernelArch": "text",
"KernelVersion": "text",
"MAC": "text",
"Memory": {
"Total": 1
},
"OS": "text",
"Platform": "text"
},
"IsRunning": true,
"PID": 1,
"StartTime": 1,
"Status": "text",
"UIDs": [
1
],
"WorkingDir": "text"
},
"Type": "text"
}
]Job created or updated successfully
No content
Invalid request payload
Failed to execute request against database
Client error
Server error
PUT /v1/cedana/jobs/{jid} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 429
{
"Details": null,
"JID": "text",
"Log": "text",
"State": {
"Cmdline": "text",
"GIDs": [
1
],
"GPUEnabled": true,
"Groups": [
1
],
"Host": {
"CPU": {
"Count": 1,
"Family": "text",
"PhysicalID": "text",
"VendorID": "text"
},
"Hostname": "text",
"ID": "text",
"KernelArch": "text",
"KernelVersion": "text",
"MAC": "text",
"Memory": {
"Total": 1
},
"OS": "text",
"Platform": "text"
},
"IsRunning": true,
"PID": 1,
"StartTime": 1,
"Status": "text",
"UIDs": [
1
],
"WorkingDir": "text"
},
"Type": "text"
}No content
Job deleted successfully
No content
Failed to execute request against database
Client error
Server error
DELETE /v1/cedana/jobs/{jid} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?