jscheffl commented on PR #59664: URL: https://github.com/apache/airflow/pull/59664#issuecomment-3678133521
Okay, I attempted for a while to lazy import in https://github.com/apache/airflow/compare/main...jscheffl:airflow:bugfix/optimize-import-overhead-in-google-aiplatform?expand=1 and finally needed to give-up in the area where @amoghrajesh already extracted to `_get_metrics()` whichh is not as lazy imported as it was attempted, finally there the metrics seem to need to be Python objects and are loaded at time of Operator initialization... and then the full vertex_ai stack is loaded :-( So not so easy to optimize w/o changing/breaking operator interfaces or copying massive boilerplate from Python packaged examples into the Dag itself. -- 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]
