how to flush logs in the terminal in real time when using ray?
Great job! When I run it, the logs do not display in real-time in the terminal, even though I used print(..., flush=True). I suspect this is due to Ray. Is there a way to refresh the logs in real time?
Try adding this environment variable export PYTHONUNBUFFERED=1
the logs do not display in real-time in the terminal, even though I used print(..., flush=True)
Where is the print function? Is it in a Ray task or actor?
@eric-haibin-lin would you mind adding a label ray? Thanks
Try adding this environment variable
export PYTHONUNBUFFERED=1
It works. Thanks for the quick reply!
the logs do not display in real-time in the terminal, even though I used print(..., flush=True)
Where is the
@kevin85421 in the main task
I don't know what the main task refers to, but I guess it's in the driver process. I'll close this issue since it has been resolved.