Skip to content

[Task] Add Dinky task to better support the development and execution of FlinkSQL#10640

Merged
zhongjiajie merged 8 commits intoapache:devfrom
aiwenmo:Feature-10444
Jul 5, 2022
Merged

[Task] Add Dinky task to better support the development and execution of FlinkSQL#10640
zhongjiajie merged 8 commits intoapache:devfrom
aiwenmo:Feature-10444

Conversation

@aiwenmo
Copy link
Contributor

@aiwenmo aiwenmo commented Jun 27, 2022

Purpose of the pull request

Add Dinky task to better support the development and execution of FlinkSQL.

close #10444

Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.

(or)

This pull request is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

@SbloodyS SbloodyS added feature new feature UI ui and front end related backend labels Jun 28, 2022
@SbloodyS SbloodyS added this to the 3.1.0-alpha milestone Jun 28, 2022
@aiwenmo
Copy link
Contributor Author

aiwenmo commented Jun 28, 2022

demo-get-dinky-task-id(../../../../img/tasks/demo/dinky_task_id.png)
At present, Dinky is not internationalized, and English pictures will be added later.

@codecov-commenter
Copy link

Codecov Report

Merging #10640 (464ac6e) into dev (719a9d4) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                dev   #10640      +/-   ##
============================================
- Coverage     40.94%   40.90%   -0.05%     
+ Complexity     4876     4830      -46     
============================================
  Files           895      897       +2     
  Lines         36212    36158      -54     
  Branches       3987     4006      +19     
============================================
- Hits          14826    14789      -37     
+ Misses        19921    19898      -23     
- Partials       1465     1471       +6     
Impacted Files Coverage Δ
...inscheduler/server/master/config/MasterConfig.java 35.00% <0.00%> (-41.75%) ⬇️
...inscheduler/server/worker/config/WorkerConfig.java 52.38% <0.00%> (-24.09%) ⬇️
.../dolphinscheduler/common/utils/ParameterUtils.java 58.53% <0.00%> (-14.60%) ⬇️
...cheduler/plugin/task/api/TaskExecutionContext.java 93.87% <0.00%> (-5.38%) ⬇️
...ache/impl/ProcessInstanceExecCacheManagerImpl.java 83.33% <0.00%> (-1.29%) ⬇️
...heduler/server/master/service/FailoverService.java 63.80% <0.00%> (-1.10%) ⬇️
...he/dolphinscheduler/server/utils/ProcessUtils.java 28.23% <0.00%> (-1.04%) ⬇️
...olphinscheduler/plugin/alert/email/MailSender.java 51.03% <0.00%> (-0.36%) ⬇️
...r/api/service/impl/WorkFlowLineageServiceImpl.java 33.01% <0.00%> (-0.32%) ⬇️
...nscheduler/service/process/ProcessServiceImpl.java 30.28% <0.00%> (-0.30%) ⬇️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 719a9d4...464ac6e. Read the comment docs.

@SbloodyS
Copy link
Member

SonarCloud Quality Gate failed.    Quality Gate failed

Bug C 1 Bug Vulnerability A 0 Vulnerabilities Security Hotspot A 0 Security Hotspots Code Smell A 0 Code Smells

0.0% 0.0% Coverage 0.0% 0.0% Duplication

Please fix the bugs.

@SbloodyS SbloodyS closed this Jun 30, 2022
@SbloodyS SbloodyS reopened this Jun 30, 2022
SbloodyS
SbloodyS previously approved these changes Jun 30, 2022
Copy link
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backend part LGTM. Thanks.

@aiwenmo
Copy link
Contributor Author

aiwenmo commented Jul 4, 2022

Hi. Please review the new code. thx. @Amy0104

Amy0104
Amy0104 previously approved these changes Jul 4, 2022
Copy link
Member

@Amy0104 Amy0104 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The front end part LGTM.

@SbloodyS
Copy link
Member

SbloodyS commented Jul 4, 2022

@zhongjiajie PTAL.

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +15 to +25
- Node name: The node name in a workflow definition is unique.
- Run flag: Identifies whether this node can be scheduled normally, if it does not need to be executed, you can turn on the prohibition switch.
- Descriptive information: Describe the function of the node.
- Task priority: When the number of worker threads is insufficient, execute in the order of priority from high to low, and tasks with the same priority will execute in a first-in first-out order.
- Worker grouping: Assign tasks to the machines of the worker group to execute. If `Default` is selected, randomly select a worker machine for execution.
- Number of failed retry attempts: The failure task resubmitting times. It supports drop-down and hand-filling.
- Failed retry interval: The time interval for resubmitting the task after a failed task. It supports drop-down and hand-filling.
- Timeout alarm: Check the timeout alarm and timeout failure. When the task exceeds the "timeout period", an alarm email will send and the task execution will fail.
- Dinky Address: The url for a dinky server.
- Dinky Task ID: The unique task id for a dinky task.
- Online Task: Specify whether the current dinky job is online. If yes, the submitted job can only be submitted successfully when it is published and there is no corresponding Flink job instance running.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currently, all our English version tasks parameters convert from list style to table format style, which you can see example in https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/task/shell.md. So please change to a table format in English version of docs. And it is up to you whether change Chinese version of docs

@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2022

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@aiwenmo
Copy link
Contributor Author

aiwenmo commented Jul 4, 2022

Hi. Please review the new docs. thx. @zhongjiajie

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@zhongjiajie zhongjiajie merged commit 5b0347e into apache:dev Jul 5, 2022
@zhongjiajie zhongjiajie changed the title [Feature-10444][Task] Add Dinky task to better support the development and execution of FlinkSQL [Task] Add Dinky task to better support the development and execution of FlinkSQL Jul 5, 2022
@zhongjiajie
Copy link
Member

Thanks for bringing this up

zhongjiajie pushed a commit to zhongjiajie/dolphinscheduler that referenced this pull request Jul 5, 2022
jinyanhui2008 pushed a commit to jinyanhui2008/dolphinscheduler that referenced this pull request Sep 20, 2022
… of FlinkSQL (apache#10640)

# Conflicts:
#	docs/configs/docsdev.js
#	dolphinscheduler-task-plugin/dolphinscheduler-task-all/pom.xml
#	dolphinscheduler-task-plugin/pom.xml
#	dolphinscheduler-ui/src/views/projects/task/components/node/fields/index.ts
#	dolphinscheduler-ui/src/views/projects/task/components/node/format-data.ts
#	dolphinscheduler-ui/src/views/projects/task/components/node/tasks/index.ts
#	dolphinscheduler-ui/src/views/projects/task/components/node/types.ts
#	dolphinscheduler-ui/src/views/projects/task/constants/task-type.ts
#	dolphinscheduler-ui/src/views/projects/workflow/components/dag/dag.module.scss

3.0.1 合并dinky的代码.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend feature new feature UI ui and front end related

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature][Task] Add Dinky task to better support the development and execution of FlinkSQL

6 participants