Query data processing tasks¶
Query the processing tasks and status of the knowledge base source.
GET $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/source-jobs
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First query the knowledge base list to obtain the knowledge base ID. Prepare a personal access token and target workspace ID that can access the target workspace.
Request parameters¶
curl "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/source-jobs" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Field |
Type |
Required |
Description |
|---|---|---|---|
|
integer |
Yes |
knowledge base ID. |
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"items": [
{
"job_id": "job_01",
"source_id": "src_01",
"job_status": "pending",
"updated_at": 1735632000,
"reconcile_required": false
}
],
"total": 1,
"reconcile_required": false
}
}
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
object |
response data. |
|
array of object |
Source processing task list. |
|
integer |
Total number of tasks. |
|
boolean |
Whether there are tasks in the knowledge base that need to repair the status. |
|
string |
Task ID. |
|
string |
The source ID associated with the task. |
|
string |
Current processing status. |
|
string |
Source file ID. May be omitted when not applicable. |
|
string or null |
knowledge base file ID. May be omitted when not applicable. |
|
integer |
Source table ID. May be omitted when not applicable. |
|
integer or null |
knowledge base table ID. May be omitted when not applicable. |
|
string |
Reason for failure. May be omitted if there is no error. |
|
integer |
Unix timestamp. May be omitted if no value. |
|
boolean |
Whether the task needs to be repaired. |
Error response¶
{
"code": "ErrNotFound",
"msg": "resource not found",
"data": null
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
Error description. |
|
null |
|