Skip to content
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

fixes https://github.com/AntreasAntoniou/kubejobs/issues/10 #11

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kubejobs/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ def __init__(
self.cpu_request = (
cpu_request
if cpu_request
else MAX_CPU // (MAX_GPU - gpu_limit + 1)
else MAX_CPU // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)
)
self.ram_request = (
ram_request
if ram_request
else f"{MAX_RAM // (MAX_GPU - gpu_limit + 1)}G"
else f"{MAX_RAM // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1)}G"
)
self.storage_request = storage_request
self.gpu_type = gpu_type
Expand Down
Loading