zhongjiajie commented on PR #10487:
URL: 
https://github.com/apache/dolphinscheduler/pull/10487#issuecomment-1159368073

   🤣 sorry my bad, I am sleepy last night and do not notice that. I mean the 
init proposal is support using path in Python API. so maybe we should only 
change some code in python gateway or add a new interface entrypoint to do that.
   and for Python API side, we can simple use 
   
   ```py
   test_task = Python(
           name="test",
           resource_list=["/abce/aa.py", "/abce/bb.py"],
           code=base_info_py_code
       )
   ```
   and then add covert it to dict and add key `resourceName` in our python cod, 
you can see 
https://github.com/apache/dolphinscheduler/blob/4be3b877c3c143e2b5c58c017b641fd927c0dff5/dolphinscheduler-python/pydolphinscheduler/src/pydolphinscheduler/core/process_definition.py#L201-L212
 as example


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to