radumas commented on issue #51117:
URL: https://github.com/apache/airflow/issues/51117#issuecomment-2932451942

   Question: It seems like the initial systemd files assume that airflow is 
installed at the system level, instead of in a virtual environment.
   
   For example:
   
   
https://github.com/apache/airflow/blob/2eb420ca67f4360167785fe204b0e76566276bc6/scripts/systemd/airflow-scheduler.service#L29
   
   whereas in our service file we have:
   
   ```
   ExecStart= bash -c 'source /home/airflow/airflow_venv/bin/activate ; 
/home/airflow/airflow_venv/bin/airflow scheduler'
   ```
   
   Which is activating the virtual environment (and loading any variables 
configured there) and then starting the scheduler.
   
   Any preferences? 
   
   I could update the documentation to be more explicit about the airflow 
installation location and what to modify if the install is within a virtual 
environment.
   
   **Also**, we don't run flower, kerberos or worker, so I can't touch those 
with authority if there's something to change there.


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