| object | | |
| RequestId | string | | 22C97E95-F023-56B5-8852-B1A77A17XXXX |
| Task | object | | |
| Name | string | | SQL node |
| Description | string | The description of the task. | test |
| WorkflowId | long | | 1234 |
| InstanceMode | string | The instance generation mode. Valid values:
| T+1 |
| Type | string | | ODPS_SQL |
| BaselineId | long | | 1234 |
| Priority | integer | The priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. | 1 |
| Timeout | integer | The timeout period of task running. Unit: seconds. | 3600 |
| RerunMode | string | The rerun mode. Valid values:
- AllDenied: The task cannot be rerun regardless of whether the task is successfully run or fails to be run.
- FailureAllowed: The task can be rerun only after it fails to be run.
- AllAllowed: The task can be rerun regardless of whether the task is successfully run or fails to be run.
| AllAllowed |
| RerunTimes | integer | The number of times that the task is rerun. This parameter takes effect only if the RerunMode parameter is set to AllAllowed or FailureAllowed. | 3 |
| RerunInterval | integer | The rerun interval. Unit: seconds. | 60 |
| Script | object | | |
| Content | string | | echo "helloWorld" |
| Parameters | string | | para1=$bizdate |
| Trigger | object | The method to trigger task scheduling. | |
| Type | string | The trigger type. Valid values:
- Scheduler: periodic scheduling
- Manual: manual scheduling
| Scheduler |
| Recurrence | string | The running mode of the task after it is triggered. This parameter takes effect only if the Type parameter is set to Scheduler. Valid values:
| Normal |
| Cron | string | The CRON expression of the task. This parameter takes effect only if the Type parameter is set to Scheduler. | 00 00 00 * * ? |
| StartTime | string | The start time of the time range during which the task is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler. | 1970-01-01 00:00:00 |
| EndTime | string | The end time of the time range during which the task is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler. | 9999-01-01 00:00:00 |
| RuntimeResource | object | The configurations of the runtime environment, such as the resource group information. | |
| ResourceGroupId | string | The ID of the resource group for scheduling configured for task running. | S_res_group_524258031846018_1684XXXXXXXXX |
| Image | string | The ID of the image configured for task running. | i-xxxxxx
|
| Cu | string | The default number of compute units (CUs) configured for task running. | 0.25 |
| DataSource | object | The information about the associated data source. | |
| Name | string | The name of the data source. | mysql_test |
| Inputs | object | | |
| Variables | array<object> | | |
| Variable | object | | |
| Name | string | The name of the variable. | key1 |
| Type | string | The type. Valid values:
- Constant: constant
- PassThrough: node output
- System: variable
- NodeOutput: script output
| Constant
|
| Value | string | The value of the variable. | Value1
|
| Outputs | object | | |
| TaskOutputs | array<object> | | |
| TaskOutput | object | | |
| Output | string | The identifier of the output. | pre.odps_sql_demo_0 |
| Variables | array<object> | | |
| Variable | object | | |
| Name | string | The name of the variable. | key1 |
| Type | string | The type. Valid values:
- Constant: constant
- PassThrough: node output
- System: variable
- NodeOutput: script output
| Constant
|
| Value | string | The value of the variable. | value1 |
| Dependencies | array<object> | The dependency information. | |
| Dependencie | object | | |
| Type | string | The dependency type. Valid values:
- CrossCycleDependsOnChildren: cross-cycle dependency on level-1 descendant nodes
- CrossCycleDependsOnSelf: cross-cycle dependency on the current node
- CrossCycleDependsOnOtherNode: cross-cycle dependency on other nodes
- Normal: same-cycle scheduling dependency
| Normal |
| UpstreamOutput | string | The identifier of the output of the ancestor task. This parameter is returned only if same-cycle scheduling dependencies and the node input are configured. | pre.odps_sql_demo_0 |
| UpstreamTaskId | string | The ancestor task ID. This parameter is returned only if cross-cycle scheduling dependencies or same-cycle scheduling dependencies and the node input are not configured. | 1234 |
| SubTasks | object | The configurations of the subtasks, such as a do-while node. | |
| SubTasks | array<object> | | |
| SubTask | object | | |
| Name | string | | SQL node |
| Description | string | The description of the task. | test |
| WorkflowId | long | The ID of the workflow to which the task belongs. | 1234 |
| Type | string | | ODPS_SQL
|
| BaselineId | long | | The baseline ID. |
| Priority | integer | The priority of the task. Valid values: 1 to 8. A larger value indicates a higher priority. Default value: 1. | 1 |
| Timeout | integer | The timeout period of task running. Unit: seconds. | 3600 |
| RerunMode | string | The rerun mode. Valid values:
- AllDenied: The task cannot be rerun regardless of whether the task is successfully run or fails to be run.
- FailureAllowed: The task can be rerun only after it fails to be run.
- AllAllowed: The task can be rerun regardless of whether the task is successfully run or fails to be run.
| AllAllowed |
| RerunTimes | integer | The number of times that the task is rerun. This parameter takes effect only if the RerunMode parameter is set to AllAllowed or FailureAllowed. | 3 |
| RerunInterval | integer | The rerun interval. Unit: seconds. | 180 |
| Trigger | object | The method to trigger task scheduling. | |
| Type | string | The trigger type. Valid values:
- Scheduler: periodic scheduling
- Manual: manual scheduling
| Scheduler |
| Recurrence | string | The running mode of the task after it is triggered. This parameter takes effect only if the Type parameter is set to Scheduler. Valid values:
| Normal
|
| Cron | string | The CRON expression of the task. This parameter takes effect only if the Type parameter is set to Scheduler. | 00 00 00 * * ?
|
| StartTime | string | The start time of the time range during which the task is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler. | 1970-01-01 00:00:00
|
| EndTime | string | The end time of the time range during which the task is periodically scheduled. This parameter takes effect only if the Type parameter is set to Scheduler. | 9999-01-01 00:00:00
|
| RuntimeResource | object | The runtime environment configuration of the task, such as the resource group. | |
| ResourceGroupId | string | The ID of the resource group for scheduling configured for task running. | S_res_group_524258031846018_1684XXXXXXXXX |
| Image | string | The ID of the image configured for task running. | i-xxxxxx |
| Cu | string | The default number of CUs configured for task running. | 0.25 |
| DataSource | object | The information about the associated data source. | |
| Name | string | The name of the data source. | mysql_test
|
| Id | long | | 1234 |
| ProjectId | long | | 100 |
ProjectEnvdeprecated | string | The environment of the workspace. This parameter is deprecated and replaced by the EnvType parameter. Valid values:
- Prod: production environment
- Dev: development environment
| Prod |
| EnvType | string | The environment of the workspace. Valid values:
- Prod: production environment
- Dev: development environment
| Prod |
| Owner | string | The account ID of the task owner. | 1000
|
| CreateTime | long | | 1710239005403
|
| ModifyTime | long | | 1710239005403
|
| CreateUser | string | The account ID of the creator. | 1000
|
| ModifyUser | string | The account ID of the modifier. | 1000
|
| Type | string | The type of the subtask. Valid values:
- DoWhile: do-while node
- Combined: node group
- ForEach: for-each node
| Combined |
| Tags | array<object> | | |
| Tag | object | | |
| Key | string | | key1 |
| Value | string | | value1 |
| Id | long | | 1234 |
| ProjectId | long | | 100 |
ProjectEnvdeprecated | string | The environment of the workspace. This parameter is deprecated and replaced by the EnvType parameter. Valid values:
- Prod: production environment
- Dev: development environment
| Prod |
| EnvType | string | The environment of the workspace. Valid values:
- Prod: production environment
- Dev: development environment
| Prod |
| Owner | string | The account ID of the task owner. | 1000 |
| CreateTime | long | | 1710239005403
|
| ModifyTime | long | | 1710239005403
|
| CreateUser | string | The account ID of the creator. | 1000
|
| ModifyUser | string | The account ID of the modifier. | 1000 |