Skip to main content

Get list of task runs

GET 

/v2/actor-tasks/:actorTaskId/runs

Get a list of runs of a specific task. The response is a list of objects, where each object contains essential information about a single task run.

The endpoint supports pagination using the limit and offset parameters, and it does not return more than a 1000 array elements.

By default, the records are sorted by the startedAt field in ascending order; therefore you can use pagination to incrementally fetch all records while new ones are still being created. To sort the records in descending order, use the desc=1 parameter. You can also filter runs by status (available statuses).

Request

Path Parameters

    actorTaskId string required

    Task ID or a tilde-separated owner's username and task's name.


    Example: janedoe~my-task

Query Parameters

    offset double

    Number of array elements that should be skipped at the start. The default value is 0.


    Example: 10
    limit double

    Maximum number of array elements to return. The default value as well as the maximum is 1000.


    Example: 99
    desc boolean

    If true or 1 then the objects are sorted by the startedAt field in descending order. By default, they are sorted in ascending order.


    Example: true
    status string

    Single status or comma-separated list of statuses, see (available statuses). Used to filter runs by the specified statuses only.


    Example: SUCCEEDED

Status 200

Response Headers
    {
    "data": {
    "total": 2,
    "offset": 0,
    "limit": 1000,
    "desc": false,
    "count": 2,
    "items": [
    {
    "id": "HG7ML7M8z78YcAPEB",
    "actId": "HDSasDasz78YcAPEB",
    "actorTaskId": "KJHSKHausidyaJKHs",
    "status": "SUCCEEDED",
    "startedAt": "2019-11-30T07:34:24.202Z",
    "finishedAt": "2019-12-12T09:30:12.202Z",
    "buildId": "HG7ML7M8z78YcAPEB",
    "buildNumber": "0.0.2",
    "meta": {
    "origin": "WEB"
    },
    "usageTotalUsd": 0.2,
    "defaultKeyValueStoreId": "sfAjeR4QmeJCQzTfe",
    "defaultDatasetId": "3ZojQDdFTsyE7Moy4",
    "defaultRequestQueueId": "so93g2shcDzK3pA85"
    },
    {
    "id": "HG7ML7M8z78YcAPEB",
    "actId": "HDSasDasz78YcAPEB",
    "actorTaskId": "KJHSKHausidyaJKHs",
    "status": "FAILED",
    "startedAt": "2019-12-12T07:34:14.202Z",
    "finishedAt": "2019-12-13T08:36:13.202Z",
    "buildId": "u78dML7M8z78YcAPEB",
    "buildNumber": "0.2.2",
    "meta": {
    "origin": "DEVELOPMENT"
    },
    "usageTotalUsd": 0.6,
    "defaultKeyValueStoreId": "sffsouqlseJCQzTfe",
    "defaultDatasetId": "CFGggdjQDsyE7Moyw",
    "defaultRequestQueueId": "soowucklrmDzKpA8x"
    }
    ]
    }
    }