Get Task Status

Overview

Returns the Function or API Task result and status based on a given executionId.

Get execution status by execution ID of a FUNCTION TASK

get

Retrieve the status of a task execution using the execution ID.

Path parameters
executionIdstringRequired

The ID of the task execution.

Responses
200
Successful function task response with execution status.
application/json
get
GET /task/function/execution-status/{executionId} HTTP/1.1
Host: run.truebit.network
Accept: */*
{
  "executionId": "abf5e6d2-f72d-4324-a046-bc6e9f27b303",
  "clearTextSolution": {
    "output": "function task output",
    "executionStatus": "succeed",
    "senderAddress": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
    "signature": {
      "v": 28,
      "r": "20476805d11bd09ecad1b67102a0be84810749430bf8deca83f93de9b185d486",
      "s": "07f38e3b363300f4997460ddef83c0769dedfd7ba8a61a21236081b5b8f74e66"
    }
  },
  "verificationStatus": "Success"
}

Get execution status by execution ID of an API TASK

get

Retrieve the status of an API task execution using the execution ID.

Path parameters
executionIdstringRequired

The ID of the task execution.

Responses
200
Successful api task response with execution status.
application/json
get
GET /task/api/execution-status/{executionId} HTTP/1.1
Host: run.truebit.network
Accept: */*
{
  "executionId": "eced5793-8634-4489-a589-2f1978367496",
  "clearTextSolution": {
    "output": {},
    "status": "succeed",
    "senderAddress": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
  },
  "status": "Success",
  "totalTransferredBytes": {
    "request": 194,
    "response": 438
  }
}
  • Success: The Task execution was completed successfully. The result was received within the specified timeout, and all nodes provided the same response.

  • Indeterminate: A consensus on the result couldn't be reached. This could be because the execution took too long, nodes gave different answers (requiring a Verification Game), or we received fewer responses than the required solutions defined in the request.

  • Error: There was an error during the task execution.

Last updated

Was this helpful?