uranusjr commented on code in PR #30367: URL: https://github.com/apache/airflow/pull/30367#discussion_r1166053752
########## airflow/__init__.py: ########## @@ -61,7 +61,8 @@ # Perform side-effects unless someone has explicitly opted out before import -# WARNING: DO NOT USE THIS UNLESS YOU REALLY KNOW WHAT YOU'RE DOING. +# WARNING: Use with care, `_AIRFLOW__AS_LIBRARY` will prevent proper intialization (configs, syspath, logger...). +# It might be needed if you intend to use airflow as third-party package. Review Comment: ```suggestion # WARNING: DO NOT USE THIS UNLESS YOU REALLY KNOW WHAT YOU'RE DOING. # This environment variable prevents proper intialization, and things like # configs, logging, the ORM, etc. will be broken. It is only useful if you only # access certain trivial constants and free functions (e.g. `__version__`). ``` -- 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 For queries about this service, please contact Infrastructure at: us...@infra.apache.org