From 91ac11d0e8a5df36a934e2a6df7a7d8c113bd51e Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Fri, 16 Mar 2018 15:13:15 -0300 Subject: [PATCH] In /v1/apps/:appId/stop, wait for the service to exit before responding Change-Type: patch Signed-off-by: Pablo Carranza Velez --- src/application-manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application-manager.coffee b/src/application-manager.coffee index a4f37b05..ec11e62e 100644 --- a/src/application-manager.coffee +++ b/src/application-manager.coffee @@ -127,7 +127,7 @@ createApplicationManagerRouter = (applications) -> if app.services.length > 1 return res.status(400).send('Some v1 endpoints are only allowed on single-container apps') applications.setTargetVolatileForService(service.imageId, running: action != 'stop') - applications.executeStepAction(serviceAction(action, service.serviceId, service, service), { force }) + applications.executeStepAction(serviceAction(action, service.serviceId, service, service, { wait: true }), { force }) .then -> if action == 'stop' return service