olchas commented on a change in pull request #10403:
URL: https://github.com/apache/airflow/pull/10403#discussion_r480103439
##########
File path: airflow/providers/google/cloud/operators/dataproc.py
##########
@@ -240,10 +241,10 @@ def _get_init_action_timeout(self):
match = re.match(r"^(\d+)([sm])$", self.init_action_timeout)
if match:
if match.group(2) == "s":
- return self.init_action_timeout
+ return {"seconds": int(self.init_action_timeout)}
Review comment:
You cannot convert `init_action_timeout` to `int`, as
`init_action_timeout` has a character `s` at the end. You have to convert
`match.group(1)` instead. I edited the original suggestion.
----------------------------------------------------------------
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:
[email protected]