Skip to content

Commit 91465e2

Browse files
committed
Set PYTHONUNBUFFERED=1 so search.py and binary logs interleave in order
1 parent 81ba650 commit 91465e2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ RUN chmod +x /app/search.py
5252

5353
# search.py finds the binary here by default.
5454
ENV DEGLIB_BIN=/usr/local/bin/deglib_sisap
55+
# Unbuffered stdout so search.py's progress lines interleave in order with the
56+
# C++ binary's output in the TIRA logs (otherwise Python's block buffering flushes
57+
# them after the subprocess, making one run look like two).
58+
ENV PYTHONUNBUFFERED=1
5559

5660
# TIRA invokes the container as:
5761
# python3 /app/search.py --input $inputDataset/*.h5 \

0 commit comments

Comments
 (0)