-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Add example and notice about task type Stored Procedure #9651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
this pr close: #8019 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, please use the English screenshot instead of Chinese one
- 运行标志:标识这个结点是否能正常调度,如果不需要执行,可以打开禁止执行开关。 | ||
- 描述:描述该节点的功能。 | ||
- 任务优先级:worker 线程数不足时,根据优先级从高到低依次执行,优先级一样时根据先进先出原则执行。 | ||
- Worker 分组:任务分配给 worker 组的机器执行,选择Default,会随机选择一台 worker 机执行。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your Chinese docs should also use the highlight as English Default
, just like your doc in English.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default
- Node name: The node name in a workflow definition is unique. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should change the document like https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/guide/task/sql.md. We have section Overview
and section Create DataSource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Delayed execution time: The time (unit minute) that a task delays in execution. | ||
- Timeout alarm: Check the timeout alarm and timeout failure. When the task runs exceed the "timeout", an alarm email will send and the task execution will fail. | ||
- DataSource: The DataSource type of the stored procedure supports MySQL,POSTGRESQL,HIVE,SPARK,CLICKHOUSE,ORACLE,SQLSERVER,DB2 and PRESTO, select the corresponding DataSource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- DataSource: The DataSource type of the stored procedure supports MySQL,POSTGRESQL,HIVE,SPARK,CLICKHOUSE,ORACLE,SQLSERVER,DB2 and PRESTO, select the corresponding DataSource. | |
- DataSource: The DataSource type of the stored procedure supports MySQL,POSTGRESQL,HIVE,SPARK,CLICKHOUSE,ORACLE,SQLSERVER,DB2 and PRESTO. |
@hstdream Please resolve conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I think we should also add
## Notice
section to notice users they could only call Stored Procedure in this task, if they want to call Stored function, they should use SQL task - Please change your screenshot from Chinese to English
@@ -1,4 +1,10 @@ | |||
# Stored Procedure | |||
# PROCEDURE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# PROCEDURE | |
# Procedure |
`PROCEDURE` 任务类型,用于执行存储过程的程序 | ||
|
||
## 创建任务 | ||
|
||
- 根据选择的数据源,执行存储过程。 | ||
> 拖动工具栏中的任务节点到画板中,如下图所示: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this png link from analysys.github.io
to our local file like you add then in its Task Example
section
docs/configs/docsdev.js
Outdated
@@ -470,7 +470,7 @@ export default { | |||
link: '/zh-cn/docs/dev/user_doc/guide/task/dependent.html', | |||
}, | |||
{ | |||
title: 'Stored Procedure', | |||
title: 'Procedure, | |||
link: '/zh-cn/docs/dev/user_doc/guide/task/stored-procedure.html', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest we should change the task file name from stored-procedure
to procedure
to keep the file name same as the content title of first line
link: '/zh-cn/docs/dev/user_doc/guide/task/stored-procedure.html', | |
link: '/zh-cn/docs/dev/user_doc/guide/task/procedure.html', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also change the EN document
|
||
`PROCEDURE` task type, the program used to execute the stored procedure | ||
|
||
## Create Task | ||
|
||
- Execute the stored procedure according to the selected DataSource. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also add how to create task like others - Drag from the toolbar <img src="/img/tasks/icons/procedure.png" width="25"/> to the canvas.
# Conflicts: # docs/configs/docsdev.js
@hstdream CI failed, it is seem your have some unused imgs, and some deadlink in your change |
Codecov Report
@@ Coverage Diff @@
## dev #9651 +/- ##
=========================================
Coverage 38.56% 38.56%
+ Complexity 4080 4077 -3
=========================================
Files 1021 1021
Lines 38264 38264
Branches 4392 4394 +2
=========================================
Hits 14756 14756
Misses 21784 21784
Partials 1724 1724 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Hi @hstdream CI still failed, you should remove the images '/img/tasks/demo/procedure_task1.png', '/img/procedure-en.png', '/img/procedure_edit.png', '/img/tasks/demo/procedure_task2.png' in And change the screenshot |
� Conflicts: � docs/docs/en/guide/task/stored-procedure.md � docs/docs/zh/guide/task/stored-procedure.md
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution, but please switch dolphinscheduler language to English for the screenshot, we only accept English version
I close this pr due to already implemented in dev branch. |
Purpose of the pull request
this pr close: #8019
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: