BatchUpdateTasks
Update multiple tasks in DataWorks simultaneously, managing configurations like data sources, triggers, environment types, and resource groups efficiently.
Instructions
批量更新任务 *此Tool有MCP Resource,请查看BatchUpdateTasks(MCP Resource)获取更多使用此Tool的示例详情。
Input Schema
Name | Required | Description | Default |
---|---|---|---|
Comment | No | 备注信息 | |
Tasks | No | 任务列表 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"Comment": {
"description": "备注信息",
"type": "string"
},
"Tasks": {
"description": "任务列表",
"items": {
"additionalProperties": false,
"properties": {
"DataSource": {
"additionalProperties": false,
"description": "关联数据源信息",
"properties": {
"Name": {
"description": "数据源名称",
"type": "string"
}
},
"type": "object"
},
"Description": {
"description": "描述信息",
"type": "string"
},
"EnvType": {
"description": "项目环境。- Prod:生产- Dev:开发",
"type": "string"
},
"Id": {
"description": "任务ID"
},
"Name": {
"description": "名称",
"type": "string"
},
"Owner": {
"description": "任务的责任人的账号ID",
"type": "string"
},
"RerunInterval": {
"description": "重试时间间隔,单位秒"
},
"RerunMode": {
"description": "任务是否允许重跑的配置。- AllDenied:失败或成功都不可重跑- FailureAllowed:只有失败可重跑- AllAllowed:失败或成功均可重跑",
"type": "string"
},
"RerunTimes": {
"description": "重试次数,当任务设置为可重跑时生效"
},
"RuntimeResource": {
"additionalProperties": false,
"description": "运行环境配置,如资源组信息",
"properties": {
"Cu": {
"description": "任务运行配置CU消耗",
"type": "string"
},
"Image": {
"description": "任务运行配置的镜像ID",
"type": "string"
},
"ResourceGroupId": {
"description": "任务运行配置的调度资源组标识符",
"type": "string"
}
},
"type": "object"
},
"Tags": {
"description": "任务标签列表",
"items": {
"additionalProperties": false,
"properties": {
"Key": {
"description": "标签键",
"type": "string"
},
"Value": {
"description": "标签值",
"type": "string"
}
},
"required": [
"Key"
],
"type": "object"
},
"type": "array"
},
"Timeout": {
"description": "任务执行超时时间,单位秒"
},
"Trigger": {
"additionalProperties": false,
"description": "任务触发方式",
"properties": {
"Cron": {
"description": "Cron表达式,type=Scheduler时生效",
"type": "string"
},
"EndTime": {
"description": "周期触发失效时间,type=Scheduler时生效。格式为`yyyy-mm-ddhh:mm:ss`",
"type": "string"
},
"Recurrence": {
"description": "触发时的运行模式,type=Scheduler时生效。- Pause:暂停- Skip:空跑- Normal:正常运行",
"type": "string"
},
"StartTime": {
"description": "周期触发生效时间,type=Scheduler时生效。格式为`yyyy-mm-ddhh:mm:ss`",
"type": "string"
},
"Type": {
"description": "触发方式类型。- Scheduler:调度周期触发- Manual:手动触发",
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
}