Minimize downtime to 1 sec (#223)

This commit is contained in:
Pascal Vizeli 2017-10-17 22:25:29 +02:00 committed by GitHub
parent 5674d32bad
commit 66c93e7176

View File

@ -51,7 +51,7 @@ class DockerSupervisor(DockerInterface):
_LOGGER.info("Update supervisor docker to %s:%s", self.image, tag)
if await self.loop.run_in_executor(None, self._install, tag):
self.loop.call_later(2, self.loop.stop)
self.loop.call_later(1, self.loop.stop)
return True
return False