apache / dolphinscheduler-sdk-python

Apache DolphinScheduler Python API, aka PyDolphinscheduler.
https://dolphinscheduler.apache.org/python/main
Apache License 2.0
52 stars 19 forks source link

Add WorkerResourceMixin, enabling customers to set CPU quotas and max memory via the Python API #110

Closed sofyc closed 1 year ago

sofyc commented 1 year ago

Brief Summary of The Change

Pull Request checklist

I confirm that the following checklist has been completed.

zhongjiajie commented 1 year ago

I have approval the ci run

zhongjiajie commented 1 year ago

approval ci run

codecov-commenter commented 1 year ago

Codecov Report

Merging #110 (d1ffaf8) into main (b16ef50) will increase coverage by 0.08%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #110      +/-   ##
==========================================
+ Coverage   90.75%   90.84%   +0.08%     
==========================================
  Files          63       64       +1     
  Lines        2315     2337      +22     
==========================================
+ Hits         2101     2123      +22     
  Misses        214      214              
Flag Coverage Δ
unittests 90.84% <100.00%> (+0.08%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
src/pydolphinscheduler/core/mixin.py 100.00% <100.00%> (ø)
src/pydolphinscheduler/core/parameter.py 98.43% <ø> (ø)
src/pydolphinscheduler/core/task.py 93.84% <100.00%> (ø)
src/pydolphinscheduler/models/base.py 96.29% <100.00%> (ø)
src/pydolphinscheduler/tasks/datax.py 100.00% <100.00%> (ø)
src/pydolphinscheduler/tasks/python.py 100.00% <100.00%> (ø)
src/pydolphinscheduler/tasks/pytorch.py 100.00% <100.00%> (ø)
src/pydolphinscheduler/tasks/shell.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

zhongjiajie commented 1 year ago

Congrats, a good feature addition.