Completely working log streaming

This commit is contained in:
Qubasa
2023-09-27 02:27:53 +02:00
committed by Mic92
parent 7c93962e35
commit 1a63bf265a
2 changed files with 11 additions and 3 deletions

View File

@@ -144,11 +144,12 @@ async def get_logs(uuid: str) -> StreamingResponse:
yield line + "\n"
for line in proc.stdout:
yield line + "\n"
break
continue
while True:
out = proc.output
line = out.get()
if line is None:
log.debug("stream logs and line is None")
break
yield line