Skip to content

Commit f6ee4e1

Browse files
committed
Set PYTHONUNBUFFERED=TRUE to ensure print() is flushed
1 parent 1a0d9c3 commit f6ee4e1

File tree

1 file changed

+3
-0
lines changed
  • pkg/workloads/cortex/serve

1 file changed

+3
-0
lines changed

pkg/workloads/cortex/serve/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ fi
2828

2929
cd /mnt/project
3030

31+
# Ensure predictor print() statements are always flushed
32+
export PYTHONUNBUFFERED=TRUE
33+
3134
exec gunicorn \
3235
--bind 0.0.0.0:$CORTEX_SERVING_PORT \
3336
--threads $CORTEX_THREADS_PER_WORKER \

0 commit comments

Comments
 (0)