we have discussed the split design proposal in mail list for a long time, i make up a list about this. If there are not any further suggestions, i think we can start coding that.
the mail list:
https://lists.apache.org/thread.html/r5dff090f16cf2aaa76af3cd6aa374f6815de7607734d77e36ed40650%40%3Cdev.dolphinscheduler.apache.org%3E
The following tasks need to be carried out in the order of the main title. If you are interested in any task, please comment or reply below the title.
我们已经在邮件列表中讨论了很长一段时间的json拆分的设计方案,我对此做了一个列表。如果没有任何进一步的建议,我想我们可以开始编码了。
以下任务需要按照大标题的顺序进行,如果你对任何任务感兴趣,请在标题下面评论或者回复
|Column Name|Description|
| -------------------------------| ---------------- |
| id | Self-Increasing id |
| code | encoding (original name field)|
| version | version |
| description | description |
| project_code | project code |
| task_type | job type |
| task_params | Job Custom Parameters |
| run_flag | run flag |
| task_priority | job priority |
| worker_group | worker grouping |
| fail_retry_times | Number of failed retries |
| fail_retry_interval | failed retry interval |
| timeout_flag | timeout flag |
| timeout_notify_strategy | Timeout Notification Policy |
| timeout_duration | timeout length |
| create_time | creation time |
| update_time | modification time |
| Column Name | Description |
| ----------------------- | ------------------------- ------------- |
| id | self incrementing ID |
| project_code | project code |
| process_definition_code | Workflow coding |
| pre_project_code | pre-quoted project code |
| pre_task_code | pre-reference job code |
| condition_type | condition type 0: None 1: Judgment 2: Delayed |
| condition_params | condition parameters (json) |
| post_project_code | post reference project code |
| post_task_code | post reference job code |
| create_time | creation time |
| update_time | modification time |
|Column Name|Description|
| -------------------------------| ---------------- |
| id | Self-Increasing id |
| code | encoding (original name field)|
| version | version |
| description | description |
| project_code | project code |
| task_type | job type |
| task_params | Job Custom Parameters |
| run_flag | run flag |
| task_priority | job priority |
| worker_group | worker grouping |
| fail_retry_times | Number of failed retries |
| fail_retry_interval | failed retry interval |
| timeout_flag | timeout flag |
| timeout_notify_strategy | Timeout Notification Policy |
| timeout_duration | timeout length |
| create_time | creation time |
| update_time | modification time |
Add operation type (add, modify, delete), operator, operation time based on workflow definition table
Add workflow version, operation type (add, modify, delete), operator, operation time based on job relationship table
Add operation type (add, modify, delete), operator, operation time based on job definition table
Add Workflow Definition Version Number Field
| 列名 | 描述 |
| ---- | ---- |
| id | 自增ID |
| code | 编码(原name字段) |
| version | 版本 |
| description | 描述 |
| project_code | 项目编码 |
| release_state | 发布状态 |
| user_id | 所属用户ID |
| global_params | 全局参数 |
| flag | 流程是否可用:0 不可用,1 可用 |
|alert_group_id|告警人分组id |
| timeout | 超时时间 |
| tenant_id | 租户ID |
| locations | 节点坐标信息 |
| create_time | 创建时间 |
| update_time | 修改时间 |
| 列名 | 描述 |
| ----------------------- | -------------------------------------- |
| id | 自增ID |
| project_code | 项目编码 |
| process_definition_code | 工作流编码 |
| pre_project_code | 前置引用项目编码 |
| pre_task_code | 前置引用作业编码 |
| condition_type | 条件类型 0:无 1:判断 2:延迟 |
| condition_params | 条件参数(json) |
| post_project_code | 后置引用项目编码 |
| post_task_code | 后置引用作业编码 |
| create_time | 创建时间 |
| update_time | 修改时间 |
| 列名 | 描述 |
| ----------------------- | -------------- |
| id | 自增id |
| code | 编码(原name字段) |
| version | 版本 |
| description | 描述 |
| project_code | 项目编码 |
| task_type | 作业类型 |
| task_params | 作业自定义参数 |
| run_flag | 运行标志 |
| task_priority | 作业优先级 |
| worker_group | worker分组 |
| fail_retry_times | 失败重试次数 |
| fail_retry_interval | 失败重试间隔 |
| timeout_flag | 超时标志 |
| timeout_notify_strategy | 超时通知策略 |
| timeout_duration | 超时时长 |
| create_time | 创建时间 |
| update_time | 修改时间 |
工作流定义表基础上增加操作类型(新增、修改、删除)、操作人、操作时间
作业关系表基础上增加工作流版本、操作类型(新增、修改、删除)、操作人、操作时间
作业定义表基础上增加操作类型(新增、修改、删除)、操作人、操作时间
新增工作流定义版本号字段
When need to add a new code, use snowflake algorithm (IP is worker)_ ID / or a fixed ID) to get a new code, check whether the code exists in the database, if so, regenerate the code, and then check...
在需要新增code的时候,使用雪花算法(ip为worker_id/或是一个固定id)获取一个新的code,在数据库中检查此code是否存在,如果存在,重新生成code,再进行检查。。。Replace the existing workflow/task structure in master with a new structure definition
将master里现有的工作流/任务结构,换成新的结构定义
I will do this part
I will join
Most helpful comment
4. master refactoring
Replace the existing workflow/task structure in master with a new structure definition4. master重构
将master里现有的工作流/任务结构,换成新的结构定义