进入编排空间页面
1. 登录 数据开发治理平台 WeData 控制台。
2. 单击左侧菜单中的项目列表,找到需要操作开发流程的目标项目。
3. 选择项目后,单击进入数据开发模块。
4. 单击左侧菜单中的编排空间。
工作流操作步骤
新建文件夹
光标悬停在编排空间目录树的![](https://qcloudimg.tencent-cloud.cn/image/document/075626a596414f8e8d54e0ec8869326f.png)
按钮,单击并选择创建文件夹,输入文件夹名称并选择目标文件夹。
![](https://qcloudimg.tencent-cloud.cn/image/document/075626a596414f8e8d54e0ec8869326f.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/11269f68daf9086c1930e73d66c2821b.png)
说明:
WeData 支持创建多级文件夹目录,可以保存新创建的文件夹至根目录或其他已经创建好的文件夹中。
新建工作流
在左侧目录树选择目标文件夹,单击右键菜单选择新建工作流。
![](https://qcloudimg.tencent-cloud.cn/image/document/a50d92ec793e86332471efefed35ba89.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/a50d92ec793e86332471efefed35ba89.png)
在新建工作流的弹窗中输入工作流名称并选择目标文件夹,并单击确认。
![](https://qcloudimg.tencent-cloud.cn/image/document/66b47be21a58b0a8a98e37f0abd00960.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/66b47be21a58b0a8a98e37f0abd00960.png)
说明:
工作流仅支持大小写字母、数字和下划线,且最长可包括100个字符。
设计工作流
创建并编辑任务
在左侧目录树中选择新建的工作流,单击尾部的![](https://qcloudimg.tencent-cloud.cn/image/document/998dc9bb2d1794e28e8e64f27a5b92cc.png)
按钮,在弹出的菜单中选择新建任务。
![](https://qcloudimg.tencent-cloud.cn/image/document/998dc9bb2d1794e28e8e64f27a5b92cc.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/505dc64594e80d3d7953c84e1f6f4ca5.png)
选择工作流中需要配置的任务类型。 任务调度支持多种任务类型,以满足不同的开发应用场景,支持数据集成、数据计算、通用等任务类型。
![](https://qcloudimg.tencent-cloud.cn/image/document/f9cf24881bb7061ea09af4a7e0a76912.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/f9cf24881bb7061ea09af4a7e0a76912.png)
创建成功后(或双击目录树中任务节点名称)在打开的任务 Tab 页面中进行任务编辑。
![](https://qcloudimg.tencent-cloud.cn/image/document/01add3d99f3c7e33f957b0a67ad6ddd3.png)
提交工作流
1. 编辑工作流完成后,单击工具栏中的![](https://qcloudimg.tencent-cloud.cn/image/document/e4c138debe68f7aed0d020f82e35a1c8.png)
图标将工作流中的节点提交到调度系统。
![](https://qcloudimg.tencent-cloud.cn/image/document/e4c138debe68f7aed0d020f82e35a1c8.png)
2. 在提交对话框中查看本次待提交的任务节点的详情,并输入相关的变更描述。
![](https://qcloudimg.tencent-cloud.cn/image/document/1eebe21c82ab5754f40998c3d810de37.png)
3. 单击确定,将工作流提交到运维阶段。
已经提交的节点在未改变节点内容的情况下将不出现在弹窗中,但其属性等改动会被正常提交。单击![](https://qcloudimg.tencent-cloud.cn/image/document/1bbe03bc61c0ba3108b51634f6657410.png)
图标,进入运维 > 任务运维页面。
![](https://qcloudimg.tencent-cloud.cn/image/document/1bbe03bc61c0ba3108b51634f6657410.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/2f0a24a0c244028206db2c36af91d9f0.png)
计算任务操作步骤
任务节点开发支持多种任务类型,以满足不同的开发应用场景。
创建任务节点
选择工作流,再单击新建任务,选择需要创建的计算任务类型。
![](https://qcloudimg.tencent-cloud.cn/image/document/5559fe04f3babc33704281a50176ce22.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/5559fe04f3babc33704281a50176ce22.png)
配置任务节点
创建成功后,在计算任务画布中进行相应类型的代码开发。
![](https://qcloudimg.tencent-cloud.cn/image/document/ef0294ca94df3d0a476c53a438f91e64.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/ef0294ca94df3d0a476c53a438f91e64.png)
配置任务属性与调度策略。单击任务右侧任务属性、调度设置,在面板中配置任务的基本信息、调度信息。
![](https://qcloudimg.tencent-cloud.cn/image/document/b3002ee6fe2bb1997cd7c919768cdc49.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/b3002ee6fe2bb1997cd7c919768cdc49.png)
选择计算任务执行所需的数据源、资源队列、调度资源组。
![](https://qcloudimg.tencent-cloud.cn/image/document/c9a44ad7d1f26d4484effc614fc67339.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/c9a44ad7d1f26d4484effc614fc67339.png)
执行运行功能来测试计算任务运行结果是否符合预期。
![](https://qcloudimg.tencent-cloud.cn/image/document/02377eb0677298e13d2a8d4af63b36c3.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/02377eb0677298e13d2a8d4af63b36c3.png)
提交任务节点
将计算代码、任务属性、调度策略、计算资源都配置完成,并且测试任务运行符合预期后,对计算任务进行保存并提交即可完成任务节点配置。
![](https://qcloudimg.tencent-cloud.cn/image/document/f3d4e9b8952d234831793bb8299ee3ce.png)
![](https://qcloudimg.tencent-cloud.cn/image/document/f3d4e9b8952d234831793bb8299ee3ce.png)
依次将各计算任务按步骤配置完成后,再根据工作流操作步骤完成工作流层面的编排配置,即可提交调度运行。