Skip to content

Commit 2a99c38

Browse files
author
smothiki
committed
feat(workflow): add support to set memory and cpu configs
1 parent beddeec commit 2a99c38

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/scheduler/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,8 @@ def _create_rc(self, name, image, command, **kwargs):
622622
containers[0]['args'] = args
623623
loc = locals().copy()
624624
loc.update(re.match(MATCH, container_fullname).groupdict())
625-
mem = kwargs.get('memory', {}).get(loc['c_type'])
626-
cpu = kwargs.get('cpu', {}).get(loc['c_type'])
625+
mem = kwargs.get('memory', {}).get(app_type)
626+
cpu = kwargs.get('cpu', {}).get(app_type)
627627
env = kwargs.get('envs', {})
628628
if env:
629629
for k, v in env.iteritems():

0 commit comments

Comments
 (0)