potiuk commented on issue #17605:
URL: https://github.com/apache/airflow/issues/17605#issuecomment-901008515


   OK. So yeah. It is the problem of your deployment (as suspected from the 
beginning). Or rather with not realizing the consequences of certain flags used.
   
   You run airflow with --deamonize flag (-D). ​By definition --deamonize means 
(via https://linux.die.net/man/1/daemonize):
   
   > daemonize runs a command as a Unix daemon. As defined in W. Richard 
Stevens' 1990 book, Unix Network Programming (Addison-Wesley, 1990), a daemon 
is 'a process that executes 'in the background' (i.e., without an associated 
terminal or login shell) either waiting for some event to occur, or waiting to 
perform some specified task on a periodic basis.' Upon startup, a typical 
daemon program will:
   > * Close all open file descriptors (especially standard input, standard 
output and standard error)
   > * Change its working directory to the root filesystem, to ensure that it 
doesn't tie up another filesystem and prevent it from being unmounted
   > * Reset its umask value
   > * Run in the background (i.e., fork)
   > * Disassociate from its process group (usually a shell), to insulate 
itself from signals (such as HUP) sent to the process group
   > * Ignore all terminal I/O signals
   > * Disassociate from the control terminal (and take steps not to reacquire 
one)
   > *  Handle any SIGCLD signals
   
   So you have no stdout/stderr that you can use when you run --deamonize. 
Moreover, when you run airflow with -D you do not need to run it in a 
background (`&` at the end) as airflow will go to background on its own as part 
of deamonization. 
   
   You either deamonize the process, or want to read its stdout/stderr. You 
simply cannot do both at the same time.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to