Skip to main content

Inspect Execution Result

To view execution results of one or more data processes.

Execution Metadata and ID

Each execution has an unique ID (regardless of its execution status) which can be used for searching. The ID can be found from the response returned by a trigger or can be copied directly from a manual execution result.

The following is an example of a JSON body of an API route response:

{
"_status": 200,
"_metadata": {
"executionId": "Y9oAGowUL-ALdKY7i6aljg",
"triggerType": "ApiRoute",
"triggerId": "00000000-0000-0000-0000-000000000000",
"creationTimestamp": "2024-01-01T00:00:00.000000Z",
"completionTimestamp": "2024-01-01T00:01:00.000000Z",
"status": "Complete"
},
"data": {
// combined task results
}
}
API Route Results

An asynchronous API route still returns execution and trigger metadata but will not wait for task results.

Only API routes will have the _status field, which can be configured using the result agent of the SDK. (Be noted that the _status field will always be 20x in manual executions.)

API Route Encapsulation

For API routes, the execution and trigger metadata can be omitted (only return task results if any) by setting encapsulation to false.

For manual execution results in Studio, the execution ID will also show up in the execution result window:

Execution-result-manual
info

A manual execution result only contains the task result and the overall execution status.

You can inspect the full execution result in the execution result section.

Execution Status

For each execution or task comes with an execution status:

Complete

An execution, task or logic had completed execution without errors or timeout.

In Progress

An execution is still running due to execution of one of the task or logic has not yet completed and timeout hasn't been reached.

Timeout

Execution time of one of the task had exceeded the data process' timeout limit (default: 180 seconds).

Execution Error

For an execution, it indicates one of the task had reported Timeout, Complete with Error or System Error.

Complete with Error

  1. For a logic, it indicates an error had been thrown in run() (and handleError() had been invoked).

  2. For a task, it indicates a logic had reported Complete with Error (and the aggregator logic had invoked handleError() and may return a different task result).

System Error

  1. For a logic, it indicates the logic cannot be executed due to syntax errors, bundle errors (for native logic) or handleError() had also threw an error.

  2. For a task, it indicates one of the logic had reported System Error and stopped the task (no task results available).

Not Execute

Logic had skipped execution due to one previous logic in the task had reported System Error.

Inspect an Execution Result

A full execution result includes metadata of the execution, its tasks as well as logs from each task.

  1. In LOC Studio, go to Data DiscoveryExecution History.
Nav-execution
  1. Click on the trigger name of an execution result you are looking for.
Execution-result-browse
  1. The execution result contains metadata of the trigger and all of its tasks. You can copy Copy PIDs or preview View the execution trigger payload (if any), execution result or one of the task results.
Execution-result
  1. Click the right arrow Right of a task to expand its logic.
Execution-result-expanded
  1. By default, only the first log (if any) will be displayed. Click Preview View behind a logic to inspect the full logs.
tip

Logs can be written using the logging agent of the SDK. See: Logging Agent.

You can also click on a data process PID (permanent ID) to inspect the data process, or click on a logic PID to inspect its source code snapshot.

Re-Execute a Task

If a task of an execution failed to complete due to some error, an Re-execute CaretRight button will show up to allow you to manually execute the data process again.