desc.xml_description = xml
direct_map = ('env_variables', 'executable', 'arguments', 'note', 'grant', 'hosts', 'properties', 'queue', 'procs',
- 'wall_time', 'memory', 'memory_per_slot', 'modules', 'input', 'stage_in', 'native', 'persistent')
+ 'wall_time', 'modules', 'input', 'stage_in', 'native', 'persistent')
params = {}
for name in direct_map:
else:
params['postprocess_type'] = JobDescriptionForm.Process.CMD
params['postprocess_cmd'] = desc.postprocess
+ if desc.memory:
+ params['memory'] = int(desc.memory)
+ if desc.memory_per_slot:
+ params['memory_per_slot'] = int(desc.memory_per_slot)
return params