-
Notifications
You must be signed in to change notification settings - Fork 5k
[Feature-12456][task plugin] Add new task plugin for apache linkis #12693
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
...sk-linkis/src/main/java/org/apache/dolphinscheduler/plugin/task/linkis/LinkisParameters.java
Outdated
Show resolved
Hide resolved
|
|
||
| // todo split handle to submit and track | ||
| @Override | ||
| public void handle(TaskCallBack taskCallBack) throws TaskException { |
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 split into submit and track if this is a remote task, and then when task failover, it will not submit remote task again and just track status.
Codecov Report
@@ Coverage Diff @@
## dev #12693 +/- ##
============================================
- Coverage 39.46% 39.25% -0.22%
+ Complexity 4247 4241 -6
============================================
Files 1052 1058 +6
Lines 39860 39976 +116
Branches 4582 4585 +3
============================================
- Hits 15731 15692 -39
- Misses 22349 22503 +154
- Partials 1780 1781 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| TaskResponse commandExecuteResult = shellCommandExecutor.run(command); | ||
| String status = findStatus(commandExecuteResult.getResultString()); | ||
| LinkisJobStatus jobStatus = LinkisJobStatus.convertFromJobStatusString(status); | ||
| switch (jobStatus) { |
Check warning
Code scanning / CodeQL
Missing enum case in switch
|
please review again @caishunfeng |
caishunfeng
left a comment
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.
LGTM of the backend part.
|
Please add the doc in this pr too. @shangeyao |
zhongjiajie
left a comment
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.
Others looking good
| @@ -0,0 +1,49 @@ | |||
| # Apache Linkis | |||
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.
Hi, due to we add new docs in this PR, we should also add it into https://github.com/apache/dolphinscheduler/blob/dev/docs/configs/docsdev.js
docs/docs/en/guide/task/linkis.md
Outdated
| ### Attention | ||
|
|
||
| - No need to fill `sh ./bin/linkis-cli` in the configuration column, it has been configured in advance. | ||
| - The default configuration is asynchronous submission. You do not need to configure the `-- async` parameter. |
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.
| - The default configuration is asynchronous submission. You do not need to configure the `-- async` parameter. | |
| - The default configuration is asynchronous submission. You do not need to configure the `--async` parameter. |
docs/docs/en/guide/task/linkis.md
Outdated
|
|
||
| ### Config example | ||
|
|
||
| ```Config |
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 am not sure about that, but should this be shell syntax instead of config?
| ```Config | |
| ```sh |
|
SonarCloud Quality Gate failed. |
devosend
left a comment
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.
LGTM








Purpose of the pull request
close #12456
Brief change log
Add new task plugin for apache linkis