saguziel commented on a change in pull request #7363: [AIRFLOW-6730] Use 
total_seconds instead of seconds
URL: https://github.com/apache/airflow/pull/7363#discussion_r376051577
 
 

 ##########
 File path: airflow/providers/google/cloud/operators/dataproc.py
 ##########
 @@ -618,16 +618,16 @@ def _graceful_decommission_timeout_object(self) -> 
Optional[Dict]:
         match = re.match(r"^(\d+)([smdh])$", 
self.graceful_decommission_timeout)
         if match:
             if match.group(2) == "s":
-                timeout = int(match.group(1))
+                timeout = float(match.group(1))
 
 Review comment:
   This one I think makes sense as float since it is only passed as a param to 
something that is a float  
   (to hooks/dataproc.py -> update_cluster which takes timeout as an 
Optional[float] )

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to