da-tubi opened a new issue, #30499:
URL: https://github.com/apache/airflow/issues/30499

   ### Description
   
   
https://github.com/apache/airflow/blob/main/airflow/cli/commands/webserver_command.py
   
   Currently, Airflow webserver is launched via subprocess. It requires a 
Python virtual environment (with gunicorn installed) to launch the Airflow 
webserver. For people who want to pex to deploy Airflow, it is a blocking issue.
   
   ### Use case/motivation
   
   Here is the use cases:
   https://github.com/da-tubi/pants-airflow
   
   And currently, I have to hack `sys.executable` to make it work:
   ``` python
   from airflow.__main__ import main
   
   def airflow_main():
       sys.executable = f"{AIRFLOW_HOME}/bin/python"
       main()
   ```
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscr...@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to