FAQ | This is a LIVE service | Changelog

Prevent socket timeout when perform batch operations to Google API

Sync runs are occasionally failing with socket.timeout: The read operation timed out especially/always when using batching.

https://github.com/googleapis/google-api-python-client/issues/632 suggests using socket.setdefaulttimeout() before creating the client to prevent allow longer connection for batches.

Add this as a command line option for the tool with a sensible default (greater than the current 60 seconds).