Skip to content

Commit 8ced3bb

Browse files
author
smothiki
committed
fix(mesos-marathon): change instances to zero instead of scale to zero
1 parent 66e1e60 commit 8ced3bb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

controller/scheduler/mesos_marathon.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ def create(self, name, image, command='', **kwargs):
5151
if cpu:
5252
c = cpu
5353
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)
54+
self.client.create_app(app_id, MarathonApp(cmd=cmd, mem=m, cpus=c, instances=0))
5655
for _ in xrange(POLL_ATTEMPTS):
5756
if self.client.get_app(self._app_id(name)).tasks_running == 0:
5857
return

0 commit comments

Comments
 (0)