diff --git a/kubejobs/jobs.py b/kubejobs/jobs.py index d639918..91d5602 100644 --- a/kubejobs/jobs.py +++ b/kubejobs/jobs.py @@ -126,7 +126,8 @@ def __init__( self.cpu_request = ( cpu_request if cpu_request - else MAX_CPU // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1) + else MAX_CPU + // (MAX_GPU - (1 if gpu_limit is None else gpu_limit) + 1) ) self.ram_request = ( ram_request