I'm using Shake to manage some scripts that might run a really long time (days or even weeks). They print their progress to stdout using the progressbar Python module. How can I make Shake echo that progress during the run, rather than just showing the "100%" state at the end?
Things I've tried:
changing
shakeVerbosity
and also set some other options likeshakeCommandOptions = [EchoStdout True]
andshakeLineBuffering = False
adding
stdout.flush()
calls to the scripts
UPDATE: If I just print to stdout rather than using the progress bar, that works. So maybe it has to do with line buffering? The progressbar probably doesn't print a newline until the end.