potiuk commented on a change in pull request #22179:
URL: https://github.com/apache/airflow/pull/22179#discussion_r824913110
##########
File path: airflow/providers/google/suite/hooks/drive.py
##########
@@ -197,7 +197,7 @@ def upload_file(self, local_location: str, remote_location:
str) -> str:
parent = "root"
file_metadata = {"name": file_name, "parents": [parent]}
- media = MediaFileUpload(local_location)
+ media = MediaFileUpload(local_location, resumable=True)
Review comment:
Quick look and at least one issue
https://github.com/googleapis/google-api-python-client/issues/625 which has
been closed by inactivity. I think it **may** change behaviour, so having a
parameter (defaulting to False) is much better.
Also that means some unit test shoudl be added.
--
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]