I’m not sure if this is a consequence of the way Deadline’s replacements for sys.stdout and sys.stderr function, but right now, it appears to be flushing stdout on every write() call.
For example, if I run this:
print 'hello', 100
I would expect a single line of output. Instead, Deadline gives me 3:
0: PYTHON: hello
0: PYTHON:
0: PYTHON: 100
The second line is the result of it flushing to the log after the print statement writes a space between the two print arguments (but no newline). Can the behavior be changed to either only flush if a newline is encountered, or to only flush when Python actually calls .flush()? The current behavior makes logs unnecessarily hard to read.
Thanks.