When creating a Watcher, both stdout_stream and stderr_stream do not work. For example, setting any/both to a FileStream to a given filename creates the file but it remains empty.
Example snippet
Create the following script somewhere, just to have something printing to stdout and stderr
import sys
import time
while True:
print("hi - stdout", file=sys.stdout, flush=True)
print("hi - stderr", file=sys.stderr, flush=True)
time.sleep(0.5)
Related to this issue: https://github.com/circus-tent/circus/issues/1149 but specific to using circus' library.
Issue
When creating a Watcher, both
stdout_stream
andstderr_stream
do not work. For example, setting any/both to aFileStream
to a given filename creates the file but it remains empty.Example snippet
Create the following script somewhere, just to have something printing to stdout and stderr
Then, create a Watcher which runs it, like so:
(change the paths appropriately) Run it, and notice how both files (stdout and err) remain at 0 bytes.
Expected
Both files to be populated with the stdout and err of the script.
Reproducibility
This is consistently reproducible in both Circus 0.16.1 and 0.17.1, on Linux.