XD-DENG commented on issue #13200:
URL: https://github.com/apache/airflow/issues/13200#issuecomment-749137379


   I'm more thinking from an "expectation" perspective:
   
   Say I'm in directory "/home/xd" (my AIRFLOW_HOME may be 
`/home/airflow_user/airflow`), and I run `airflow scheduler -D --pid test.pid`. 
When I specify `test.pid`, I'm expecting the PID to be saved in this PID file 
in current directory, whose path is `/home/xd/test.pid`. I don't expect the 
full path to be `/home/airflow_user/airflow/test.pid`, which will be a 
confusion.
   
   On the other hand, when we daemonize this process, the only thing to do with 
path/directory is this file where PID is stored.  We don't run a process in a 
"specific" directory.


----------------------------------------------------------------
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:
[email protected]


Reply via email to