Skip to content

General

Deprecated

The api v1 is deprecated. Please visit api v2 docs page to read more about latest API.

Tasks

GET /tasks

Get tasks list

Params:

  • id - Integer optional

Example:

?id=1

Response:

[
  {
    "id": 10,
    "type": "import",
    "size": "0",
    "status": "finished",
    "meta": {
      "project": {
        "id": 5,
        "isNew": true,
        "title": "tiny_train"
      },
      "datasets": [
        {
          "id": 9,
          "isNew": true,
          "title": "cloth_inst__cloth_sly__clothing_dataset"
        }
      ],
      "path": null
    },
    "startedAt": "2018-04-13T16:28:58.595Z",
    "finishedAt": "2018-04-13T16:33:02.636Z"
  },
  {
    "id": 7,
    "type": "export",
    "size": "6198408",
    "status": "finished",
    "meta": {
      "name": "experiment001",
      "config": [
        {
          "dst": "$sample",
          "src": [
            "Test project/*"
          ],
          "action": "data",
          "settings": {
            "classes_mapping": "default"
          }
        },
        {
          "dst": "experiment001",
          "src": [
            "$sample"
          ],
          "action": "save",
          "settings": {
            "images": true,
            "annotations": true
          }
        }
      ],
      "settings": {
        "batchSize": 10,
        "nodesCount": 1
      },
      "path": {
        "bucket": "h5un6l2bnaz1vj8a9qgms4-public",
        "objectName": "tasks/archives/k/8/MA/c8vrT8kbFXDEKuynMyn11fufl3GWme26MHJ8VSNSGVOpWOjkwuLa4CSe808nHMmZX7HACOrBohzW3vJSl0kKv9JFRhmUyWNpQofhmWjKIs8ZCpeLcHrc40CRYl5m.zip"
      }
    },
    "startedAt": "2018-04-13T15:32:44.339Z",
    "finishedAt": "2018-04-13T16:28:58.342Z"
  }
]

POST /tasks/:id/stop

Stop running or queued task

Response:

{ "status": "terminating" }