Closed ChillarAnand closed 7 years ago
PYTHONUNBUFFERED=1 honcho start
Excellent. Thank you.
Is disabling output buffering something that Honcho should be doing automatically?
For example some of the tricks in: https://stackoverflow.com/questions/107705/disable-output-buffering
Unfortunately, it didn't fix the issue. Only after honcho is stopped, stdout is getting flushed.
^C12:28:15 system | SIGINT received
12:28:15 system | sending SIGTERM to celery.1 (pid 19893)
12:28:15 system | sending SIGTERM to minio.1 (pid 19894)
12:28:15 system | sending SIGTERM to web.1 (pid 19895)
12:28:15 system | minio.1 stopped (rc=-15)
12:28:15 system | web.1 stopped (rc=-15)
12:28:16 celery.1 |
12:28:16 celery.1 | worker: Warm shutdown (MainProcess)
12:28:16 celery.1 | [2017-07-06 06:58:16,867: INFO/MainProcess] beat: Shutting down...
12:28:17 celery.1 | aaaaaaaa
When a process, say celery is started directly, it shows output like this.
On the other hand, the same process gives this output with honcho.
After the process is stopped, it show stderr