Coordinate data processing tasks¶
Coordinate source processing task status. Only called when the task returns reconcile_required: true.
POST $CLOUDSIGMA_API_BASE/semantic-models/{model_id}/source-jobs/reconcile
Before you call this API¶
Configure the regional API endpoint and authentication, and select the target workspace.
First query the data processing task, and confirm that the task that returns reconcile_required: true exists in the knowledge base.
Set the operation-specific values used in the request:
$MODEL_ID: ID of the knowledge base whose task status is to be reconciled.
Request¶
curl -X POST "$CLOUDSIGMA_API_BASE/semantic-models/$MODEL_ID/source-jobs/reconcile" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
Path parameters
Parameters |
Type |
Description |
|---|---|---|
|
integer |
The ID of the knowledge base to reconcile the status of the task. |
Successful response¶
Returns 200 on success. Reread the task list to confirm final status; this interface is not a universal entry point for retrying all sources.
{
"code": "OK",
"msg": "OK",
"data": {
"updated": true
}
}
The response fields are as follows.
Field |
Type |
Description |
|---|---|---|
|
string |
|
|
string |
|
|
boolean |
|
Error response¶
{
"code": "ErrNotFound",
"msg": "resource not found",
"data": null
}
Common HTTP errors¶
HTTP status code |
error code |
Common causes |
Recommended actions |
|---|---|---|---|
|
|
|
Use the knowledge base ID from the response. |
|
|
The API Key is invalid or has expired. |
Check API Key. |
|
|
The caller does not have permission to update the source task. |
Check workspace and object authorization. |
|
|
The knowledge base does not exist or is not visible. |
Reconfirm |
|
|
The service failed to converge on the source task state. |
Keep the desensitized response information and try again. |
Follow-up operations¶
Query data processing tasks Confirm the final status of the task.