Skip to content

Commit

Permalink
Add better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lvarin committed Aug 29, 2024
1 parent fb8ef82 commit 705548b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tesk_core/taskmaster.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def run_executor(executor, namespace, pvc=None):
if 'limits' not in container['resources'].keys():
container['resources']['limits'] = None
if container['resources']['limits'] is None and \
container['resources']['requests'] is not None:
('requests' in container['resources'].keys() and \
container['resources']['requests'] is not None):
container['resources']['limits'] = container['resources']['requests']

if pvc is not None:
Expand Down

0 comments on commit 705548b

Please sign in to comment.