Print something to Docker logs when service is dead

No output in Docker logs makes all log readers stuck in a read() call.
Printing garbage lines allows for non-asyncio timeouts to kick in.

Signed-off-by: Vitaliy Potyarkin <v.potyarkin@yadro.com>
This commit is contained in:
Vitaliy Potyarkin 2025-05-12 15:53:35 +03:00
parent 729d39863f
commit d55026fe13

View file

@ -44,7 +44,7 @@ class ContainerizedService:
if self._testcontainer is None: if self._testcontainer is None:
self.create() self.create()
self.stop() self.stop()
self._pid1(f"{{ {self.command} ; }} &") self._pid1(f"{{ {self.command}; while sleep 1; do echo Service died.; done; }} &")
def stop(self): def stop(self):
self._pid1( self._pid1(