Commit 8f17a20f authored by Daniele Venzano's avatar Daniele Venzano

Comment code that keeps being broken by changes in each new Swarm version

parent c0e582b9
......@@ -92,7 +92,7 @@ def main():
config.singletons['metric'] = metrics_th
stats_th = StatsManager()
stats_th.start()
# stats_th.start() # TODO Broken Docker API
config.singletons['stats_manager'] = stats_th
log.info("Starting HTTP REST server...")
......
......@@ -29,11 +29,13 @@ class FIFOSchedulerPolicy(BaseSchedulerPolicy):
self.starting_list = []
def admission_control(self, app: ApplicationDescription) -> bool:
swarm_stats = singletons['stats_manager'].swarm_stats
if app.total_memory() < swarm_stats.memory_total:
return True
else:
return False
return True
# TODO broken Docker API
# swarm_stats = singletons['stats_manager'].swarm_stats
# if app.total_memory() < swarm_stats.memory_total:
# return True
# else:
# return False
def execution_submission(self, execution: Execution):
self.waiting_list.append(execution)
......
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