uranusjr commented on code in PR #60083:
URL: https://github.com/apache/airflow/pull/60083#discussion_r2674279563


##########
providers/google/src/airflow/providers/google/cloud/operators/dataproc.py:
##########
@@ -391,6 +390,10 @@ def _build_lifecycle_config(self, cluster_data):
             cluster_data[lifecycle_config]["idle_delete_ttl"] = {"seconds": 
self.idle_delete_ttl}
 
         if self.auto_delete_time:
+            try:
+                from airflow.sdk import timezone
+            except (ImportError, ModuleNotFoundError):
+                from airflow.utils import timezone

Review Comment:
   Please use `from airflow.providers.common.compat.sdk import timezone` 
instead and move this to top-level.



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