jblakeman edited a comment on issue #8484: URL: https://github.com/apache/airflow/issues/8484#issuecomment-630315582
Had a chance to skim through #6627 and I could be mistaken but it seems like using `os._exit` in the forked child process without first flushing stdio buffers could be a factor here: https://github.com/apache/airflow/blob/8465d66f05baeb73dd4479b019515c069444616e/airflow/task/task_runner/standard_task_runner.py#L80-L84 From the [python docs](https://docs.python.org/3/library/os.html#os._exit): >Exit the process with status n, without calling cleanup handlers, flushing stdio buffers, etc. Perhaps what's in order is a `flush()` of stdout, stderr before calling `os._exit`? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org