Add base loop task execotor and http template parser#11137
Add base loop task execotor and http template parser#11137ruanwenjun merged 5 commits intoapache:devfrom
Conversation
9955559 to
1a97ee6
Compare
...api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/loop/BaseLoopTaskExecutor.java
Show resolved
Hide resolved
|
|
||
| @Override | ||
| public void cancelTaskInstance(LoopTaskInstanceInfo loopTaskInstanceInfo) { | ||
| if (requestParams != null) { |
There was a problem hiding this comment.
It seems some same code.
There was a problem hiding this comment.
Yes, right now there are some same code in the queryStatus/cancelTask, but these two methods will be different :) they may inject parameter from other place in the future.
...er-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/OkHttpUtils.java
Outdated
Show resolved
Hide resolved
...er-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/OkHttpUtils.java
Outdated
Show resolved
Hide resolved
...ler-task-api/src/main/java/org/apache/dolphinscheduler/plugin/task/api/utils/RetryUtils.java
Show resolved
Hide resolved
42c9ec8 to
f530f85
Compare
|
I have three small points:
@ruanwenjun WDYT? |
In fact, there exist these kinds of tasks, ds is as a scheduler trigger to submit tasks to these platforms.
Yes, we can use single thread pool to loop the status in the future, but I think this will not heavier than process.
Third-party platform can call API-Server to query the status, this PR is used to provide a base task for |
Codecov Report
@@ Coverage Diff @@
## dev #11137 +/- ##
============================================
- Coverage 40.39% 40.28% -0.12%
- Complexity 4878 4897 +19
============================================
Files 950 970 +20
Lines 37186 37490 +304
Branches 4079 4119 +40
============================================
+ Hits 15022 15102 +80
- Misses 20642 20855 +213
- Partials 1522 1533 +11
Help us with your feedback. Take ten seconds to tell us how you rate us. |
f530f85 to
c7deb67
Compare
|
SonarCloud Quality Gate failed. |
* Add dolphinscheduler-bom to manage the dependency version (apache#11025) (cherry picked from commit 5e9c7da) * Add bom module * Add base loop task execotor and http template parser (apache#11137) * Add base loop task execotor and http template parser * Add JsonPathUtils (cherry picked from commit c7789bf)








Purpose of the pull request
close #11103
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: