Commit 1ddc8e05 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Support disabling memory limiting by using the -1 value in the application description

parent 3c6d225c
......@@ -73,7 +73,8 @@ def _spawn_service(execution: Execution, service: Service, env_subst_dict: dict)
copts = DockerContainerOptions()
copts.gelf_log_address = get_conf().gelf_address
copts.name = service.dns_name
copts.set_memory_limit(service.description['required_resources']['memory'])
if service.description['required_resources']['memory'] != -1:
copts.set_memory_limit(service.description['required_resources']['memory'])
copts.network_name = get_conf().overlay_network_name
copts.labels = {
'zoe.execution.name': execution.name,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment