[Supervisor-users] flush output

Chris McDonough chrism at plope.com
Thu Oct 2 10:56:49 EDT 2008


Antonio Beamud Montero wrote:
> Hi all:
> I've a problem with supervisor when I'm running my app.
> If I run it in the console, all works fine, all the output is printed
> out perfectly, but running under supervisor, always the last 15-20
> lines, not are flushed, until the next execution, and I can't see if the
> process works ok or not...
> 
> Can I force the flush of the output buffers in any way?

You might be able to run the process in "unbuffered" mode.  The mechanism to do
this is different for each subprocess, but if e.g. your subprocess was a Python
program, you might do:

python -u mysubprocess.py

Instead of:

python mysubprocess.py






More information about the Supervisor-users mailing list