ServicesWorker PoolsHTTP APIWorker sessions

List worker attempts

GET
/api/tasks/projects/{project_id}/worker-sessions/{worker_session_id}/attempts

List Attempts by descending Attempt ID. Pages default to 100 items with a maximum of 100. Continuations expire after one hour and are scoped to the caller, target, operation, filters and page size. This is a live listing; concurrent updates can change later pages.

This operation returns results in pages. To get the next page, send the nextPageToken value of the response as pageToken in a new request with the same parameters. When the response has no nextPageToken, there are no more pages. A page can have an empty attempts list before the last page.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

project_id*string
worker_session_id*string
Formatuuid

Query Parameters

pageSize?|null
pageToken?string|null

Response Body

Success

application/json
  1. response
attempts*array<>
nextPageToken?string|null
curl -X GET 'https://api.spiraldb.dev/api/tasks/projects/string/worker-sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/attempts'
{  "attempts": [    {      "attemptId": "ff88f33b-bb8d-4c28-947a-07ff3d628b10",      "ordinal": 0,      "requirements": {        "computeClass": {          "cpu": {},          "type": "cpu"        },        "cpu": 0,        "memoryBytes": "string"      },      "startedAtMicros": "string",      "status": "running",      "taskId": "e6e9d88a-9b63-468a-aec3-b7a11de27af8",      "taskSpecName": "string",      "terminalAtMicros": "string"    }  ],  "nextPageToken": "string"}