acoustic-carpenter-78188
03/12/2026, 12:45 PMsys.stdout.flush() at the end of markdown() in _gen.py to ensure all output is written before os._exit(0) kills the process. this was causing some flyte CLI commands not to render in the docs.
this happens because we recently changed the print logic from a single large write to many smaller writes. when stdout is piped (as in the docs renderer using subprocess.run), python uses block buffering, and os._exit(0) in InvokeBaseMixin terminates the process without flushing that buffer.
flyteorg/flyte-sdkacoustic-carpenter-78188
03/12/2026, 12:45 PMacoustic-carpenter-78188
03/12/2026, 2:58 PM