Add Python API implementation of workflows-as-code#6269
Conversation
0626870 to
bebbd0d
Compare
dolphinscheduler-python/src/main/java/server/PythonGatewayServer.java
Outdated
Show resolved
Hide resolved
How to reproduce
After this two steps, you could see above error and found server are null |
|
FYI, after I add commit a4d84aa After command finish, we could run cd dolphinscheduler-python/pydolphinscheduler
python example/tutorial.pyto make a quick look how |
|
cc: @caishunfeng |
|
The PythonGatewayServer is run by spring and it can manage beans by annotations like @Autowired, you can have a try like |
zhongjiajie
left a comment
There was a problem hiding this comment.
Some suggestion for you @caishunfeng
...inscheduler-python/src/main/java/org/apache/dolphinscheduler/server/PythonGatewayServer.java
Outdated
Show resolved
Hide resolved
|
@caishunfeng FYI, I add you as this PR co-author manually in commit 9da1811 |
Thanks, that's a good suggestion |
9da1811 to
9eca9f5
Compare
3ad58c6 to
6a064d1
Compare
|
Could I code style check and auto fix in my local env? |
I found out we have check-style file and idea plugin in https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html |
9f7b5c5 to
18b3157
Compare
Codecov Report
@@ Coverage Diff @@
## dev #6269 +/- ##
============================================
- Coverage 38.55% 38.46% -0.09%
+ Complexity 3224 3221 -3
============================================
Files 646 646
Lines 25840 25866 +26
Branches 2799 2804 +5
============================================
- Hits 9963 9950 -13
- Misses 14961 15002 +41
+ Partials 916 914 -2
Continue to review full report at Codecov.
|
|
Questions: could I add |
You need to check whether the jar is license-compatible with APL2.0, and add the corresponding license info into the |
@kezhenxu94 How could I check whether it compatible to APL2.0 or not? |
Read this https://www.apache.org/legal/resolved.html According to your comment, py4j is BSD 2.0 so it's compatible with APL2.0 |
|
Thanks, BTW your response as fast as usual |
4410c04 to
fa7629e
Compare
|
It's good to go now, I add example to desc how it work, and add some doc about pydolphinscheduler dev env build and core concept in readme |
davidzollo
left a comment
There was a problem hiding this comment.
great job, such a big feature
+1
kezhenxu94
left a comment
There was a problem hiding this comment.
You need to also add the new dependency license to https://github.com/apache/dolphinscheduler/blob/dev/dolphinscheduler-dist/release-docs/LICENSE
dolphinscheduler-python/pom.xml
Outdated
| <dependency> | ||
| <groupId>net.sf.py4j</groupId> | ||
| <artifactId>py4j</artifactId> | ||
| <version>0.10.9</version> |
There was a problem hiding this comment.
the dependency should put in parent pom.xml to manage version easily.
There was a problem hiding this comment.
I add this to parent pom.xml, but it seem we should still add dependency
<dependency>
<groupId>net.sf.py4j</groupId>
<artifactId>py4j</artifactId>
</dependency>to python/pom.xml. otherwise it could not find py4j dependent. Am I wrong? @caishunfeng
dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/java_gateway.py
Outdated
Show resolved
Hide resolved
I add it to |
|
PTAL @dailidong @lenboo @CalvinKirs @caishunfeng |
|
SonarCloud Quality Gate failed. |
|
+1 |










Purpose of the pull request
First commit and init for pydolphinscheduler
Brief change log
Initialization pydolphinscheduler, a python sdk for DolphinScheduler which could define workflow by code
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: