Query running records¶
Lists the running record of an import task to confirm the status and processing scope of each execution of the task.
GET https://moi.matrixorigin.cn/newmoi/task/runs?task_id=$TASK_ID
Before you call¶
Prepare the personal access token, target workspace ID, and task ID that have access to the target workspace.
The example below uses:
$AI_STUDIO_API_KEY: The actual personal access token, passed through theX-API-KeyHeader.$WORKSPACE_ID: The workspace ID of the task to be queried, passed through theX-Workspace-IDHeader.$TASK_ID: Import task ID.
Request example¶
curl "https://moi.matrixorigin.cn/newmoi/task/runs?task_id=$TASK_ID" \
-H "X-API-Key: $AI_STUDIO_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Query parameters¶
Parameters |
Type |
Is it required |
Description |
|---|---|---|---|
|
string |
Yes |
The ID of the import task to query the running records. |
[] after a type denotes an array. [] in a field path denotes each item in an array.
Successful response¶
Returns 200 on success.
{
"code": "OK",
"msg": "OK",
"data": {
"runs": [
{
"id": "run_01",
"import_task_id": "task_01",
"workflow_execution_id": "exec_01",
"status": 2,
"row_count": 100,
"file_count": 1,
"started_at": "2026-08-18T10:00:00Z",
"ended_at": "2026-08-18T10:01:00Z"
}
],
"total": 1
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object[] |
Import task running records. |
|
string |
Run ID. |
|
string |
The ID of the import task. |
|
string |
Associated workflow application ID; may be omitted if not associated. |
|
string |
The associated workflow execution ID; may be omitted if not associated. |
|
integer |
Run status code: |
|
string |
Failure message; may be omitted if there is no error. |
|
integer |
The number of rows processed in this run. |
|
integer |
The number of files processed in this run. |
|
string |
Start time; may be omitted if not recorded. |
|
string |
End time; may be omitted if not recorded. |
|
string |
Run record creation time; may be omitted if not recorded. |
|
string |
The last update time of the running record; it may be omitted if it is not recorded. |
|
integer |
Total number of running records. |
Error response¶
{
"code": "ErrParamInvalid",
"msg": "task_id is required",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
Missing or invalid |
Pass in the task ID and confirm that the task belongs to the current workspace. |
|
|
The service failed to query the running records. |
Check both HTTP status and |
Follow-up operations¶
Combine with Query Task Files to locate the failure range.