QueryDISyncTaskConfigProcessResult

Updated at:

Queries the result of an asynchronous task.

Operation description

DataWorks currently supports only directly calling the CreateDISyncTask operation to create or the UpdateDISyncTask operation to update a Data Integration offline synchronization task. To create or update a Data Integration real-time synchronization task, you must first call the GenerateDISyncTaskConfigForCreating, GenerateDISyncTaskConfigForUpdating, and QueryDISyncTaskConfigProcessResult operations to obtain the parameters required for asynchronously generating the configuration to create or update the task. Then, pass these parameters as input to the CreateDISyncTask or UpdateDISyncTask operation to create or update the corresponding real-time synchronization task. You can only use the asynchronous method to create or update Data Integration real-time synchronization tasks.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the workspace configuration page to obtain the workspace ID.

This parameter specifies the DataWorks workspace for the current API call.

10000

TaskType

string

Yes

The type of the synchronization task created or updated asynchronously. Valid values:

  • DI_REALTIME: real-time synchronization task.

  • DI_SOLUTION: solution synchronization task. Only real-time synchronization tasks and solution synchronization tasks in Data Integration can be created or updated asynchronously.

Valid values:

  • DI_REALTIME :

    Real-time synchronization task.

  • DI_SOLUTION :

    Solution synchronization task.

  • DI_OFFLINE :

    Offline synchronization task.

DI_REALTIME

AsyncProcessId

integer

Yes

The ID of the asynchronous thread. You can call the GenerateDISyncTaskConfigForCreating or GenerateDISyncTaskConfigForUpdating operation to obtain the ID.

  • GenerateDISyncTaskConfigForCreating: creates a Data Integration synchronization task.

  • GenerateDISyncTaskConfigForUpdating: updates a Data Integration synchronization task.

10

Response elements

Element

Type

Description

Example

object

The response.

Success

boolean

Indicates whether the request is successful. Valid values:

  • true: The request is successful.

  • false: The request fails.

true

RequestId

string

The request ID. You can use the ID to locate logs and troubleshoot issues.

0bc1411515937635973****

Data

object

The result of obtaining the parameters required to asynchronously generate or update a Data Integration synchronization task.

Status

string

The status of obtaining the parameters required to asynchronously generate or update a Data Integration synchronization task. Valid values:

  • success: The parameters are obtained.

  • fail: The parameters fail to be obtained. You can view the cause of the failure and troubleshoot the issue.

success

Message

string

The description of the cause for the failure to obtain the parameters required to asynchronously generate or update a Data Integration synchronization task. If the parameters are obtained, this parameter is empty.

fileId:[100] is invalid.

TaskContent

string

The parameters required for the Data Integration synchronization task generated by the asynchronous thread. These parameters are used as the input parameters of the CreateDISyncTask or UpdateDISyncTask operation to subsequently create or update the Data Integration synchronization task.

{"extend":{"mode":"migration_holo","resourceGroup":"280749","name":"h"},"type":"job","steps":[{"stepType":"mysql","parameter":{"connection":[{"datasourceType":"mysql","datasource":"mm","selectedTables":[{"schema":[{"tableInfos":[{"enable":true,"table":"m_v1","tableName":"m_v1"}]}],"dbName":"m"}]}]},"name":"reader","category":"reader"},{"stepType":"holo","parameter":{"datasource":"h","tableMappingRule":{"datasource":[{"tableRule":[{"srcTable":"m_v1","mergeIntoCycleType":"DEFAULT","hourDeltaEnable":false,"dstTable":"m.m_v1","dayDeltaEnable":false,"primaryKeyInfo":{"column":["id"],"type":"pk"},"dstCreateTableInfo":{"indexType":"m_v1","dataColumn":[{"columnSize":0,"name":"id","index":0,"comment":"","newDigit":0,"type":"int8","digit":0,"primaryKey":true}],"schemaName":"m","tableName":"m_v1"},"srcDbName":"m"}],"srcDatasourceName":"mm"}],"totalTableMapping":1},"writeMode":"replay"},"name":"writer","category":"writer"}],"version":"2.0","order":{"hops":[{"from":"reader","to":"writer"}]}}

Examples

Success response

JSON format

{
  "Success": true,
  "RequestId": "0bc1411515937635973****",
  "Data": {
    "Status": "success",
    "Message": "fileId:[100] is invalid.",
    "TaskContent": "{\"extend\":{\"mode\":\"migration_holo\",\"resourceGroup\":\"280749\",\"name\":\"h\"},\"type\":\"job\",\"steps\":[{\"stepType\":\"mysql\",\"parameter\":{\"connection\":[{\"datasourceType\":\"mysql\",\"datasource\":\"mm\",\"selectedTables\":[{\"schema\":[{\"tableInfos\":[{\"enable\":true,\"table\":\"m_v1\",\"tableName\":\"m_v1\"}]}],\"dbName\":\"m\"}]}]},\"name\":\"reader\",\"category\":\"reader\"},{\"stepType\":\"holo\",\"parameter\":{\"datasource\":\"h\",\"tableMappingRule\":{\"datasource\":[{\"tableRule\":[{\"srcTable\":\"m_v1\",\"mergeIntoCycleType\":\"DEFAULT\",\"hourDeltaEnable\":false,\"dstTable\":\"m.m_v1\",\"dayDeltaEnable\":false,\"primaryKeyInfo\":{\"column\":[\"id\"],\"type\":\"pk\"},\"dstCreateTableInfo\":{\"indexType\":\"m_v1\",\"dataColumn\":[{\"columnSize\":0,\"name\":\"id\",\"index\":0,\"comment\":\"\",\"newDigit\":0,\"type\":\"int8\",\"digit\":0,\"primaryKey\":true}],\"schemaName\":\"m\",\"tableName\":\"m_v1\"},\"srcDbName\":\"m\"}],\"srcDatasourceName\":\"mm\"}],\"totalTableMapping\":1},\"writeMode\":\"replay\"},\"name\":\"writer\",\"category\":\"writer\"}],\"version\":\"2.0\",\"order\":{\"hops\":[{\"from\":\"reader\",\"to\":\"writer\"}]}}"
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Param.Invalid The parameter is invalid. Param invalid
500 InternalError.System An internal error occurred. InternalError
403 Forbidden.Access Access is forbidden.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.