We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 620e548 + 8ced3bb commit 837ef9dCopy full SHA for 837ef9d
1 file changed
controller/scheduler/mesos_marathon.py
@@ -51,8 +51,7 @@ def create(self, name, image, command='', **kwargs):
51
if cpu:
52
c = cpu
53
cmd = "docker run --name {name} -P {image} {command}".format(**locals())
54
- self.client.create_app(app_id, MarathonApp(cmd=cmd, mem=m, cpus=c))
55
- self.client.scale_app(app_id, 0, force=True)
+ self.client.create_app(app_id, MarathonApp(cmd=cmd, mem=m, cpus=c, instances=0))
56
for _ in xrange(POLL_ATTEMPTS):
57
if self.client.get_app(self._app_id(name)).tasks_running == 0:
58
return
0 commit comments