You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/18 17:04:36 UTC

[GitHub] [airflow] jblakeman commented on issue #8484: Airflow 1.10.7+ suppresses Operator logs

jblakeman commented on issue #8484:
URL: https://github.com/apache/airflow/issues/8484#issuecomment-630315582


   Had a chance to look 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:
users@infra.apache.org