-
Notifications
You must be signed in to change notification settings - Fork 300
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
add requests and limits parameter to ContainerTask #438
Conversation
Signed-off-by: Miguel Toledo <[email protected]>
Signed-off-by: Miguel Toledo <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #438 +/- ##
==========================================
+ Coverage 84.25% 84.26% +0.01%
==========================================
Files 338 338
Lines 25528 25533 +5
Branches 2095 2095
==========================================
+ Hits 21509 21516 +7
+ Misses 3449 3448 -1
+ Partials 570 569 -1
Continue to review full report at Codecov.
|
@@ -92,6 +92,7 @@ def t1(a: int) -> (int, str): | |||
output_data_dir="/tmp", | |||
command=["cat"], | |||
arguments=["/tmp/a"], | |||
requests=Resources(mem="400Mi", cpu="1"), |
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.
lets add an example without the resources specified. (I know you have the defaulting behavior, but just a gate)
LGTM, one comment. and please sign the DCO |
Signed-off-by: Miguel Toledo <[email protected]>
0d73743
to
7dcc1b9
Compare
* add requests and limits parameter Signed-off-by: Miguel Toledo <[email protected]> * fix typo Signed-off-by: Miguel Toledo <[email protected]> * signoff Signed-off-by: Miguel Toledo <[email protected]> Signed-off-by: Max Hoffman <[email protected]>
* add requests and limits parameter Signed-off-by: Miguel Toledo <[email protected]> * fix typo Signed-off-by: Miguel Toledo <[email protected]> * signoff Signed-off-by: Miguel Toledo <[email protected]>
TL;DR
This allows a user to be able to set Resources limits and requests for containerTasks.
Type
Are all requirements met?
Complete description
How did you fix the bug, make the feature etc. Link to any design docs etc
Tracking Issue
flyteorg/flyte#877
Follow-up issue
NA