1

The Google Cloud GCFSFileSystem object takes a requests_timeout parameter with a default value of None. This parameter is not documented.

I assume this is the time before we give up on an individual GCFS request. By analogy with cache_timeout, which is documented, I assume it is a float value in seconds, where None means no timeout.

Is this correct?

W.P. McNeill
  • 16,336
  • 12
  • 75
  • 111

1 Answers1

4

Integer value in seconds:

Extract from the google.auth.transport.requests documentation:

timeout (Optional[int]): The number of seconds to wait for a
                response from the server. If not specified or if None, the
                requests default timeout will be used.

Which is called on line 490, according to the gcsfs.core documentation.

Edit: The default timeout is 120 seconds as defined by _DEFAULT_TIMEOUT (credits to @John Hanley for adding this info)

Neo Anderson
  • 5,957
  • 2
  • 12
  • 29
  • 1
    To add to this good answer. The default timeout is 120 seconds as defined by `_DEFAULT_TIMEOUT`. – John Hanley Aug 05 '20 at 22:12
  • 1
    @JohnHanley , Thanks for improving the answer - you are always precise in the answers and comments that I run into. I can incorporate this info in the answer if you agree. – Neo Anderson Aug 14 '20 at 05:23