rclone/backend/googlephotos
Nick Craig-Wood 4013bc4a4c Fix excessive retries missing --max-duration timeout - fixes #4504
This change checks the context whenever rclone might retry, and
doesn't retry if the current context has an error.

This fixes the pathological behaviour of `--max-duration` refusing to
exit because all the context deadline exceeded errors were being
retried.

This unfortunately meant changing the shouldRetry logic in every
backend and doing a lot of context propagation.

See: https://forum.rclone.org/t/add-flag-to-exit-immediately-when-max-duration-reached/22723
2021-03-13 09:25:44 +00:00
..
api doc: fix typos throughout docs and code 2020-05-20 15:54:51 +01:00
testfiles googlephotos: Backend for accessing Google Photos #369 2019-07-02 15:26:55 +01:00
albums.go build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
albums_test.go build: run gofmt -s to simplify the code: suggested by Go Report Card 2020-06-18 18:45:39 +01:00
googlephotos.go Fix excessive retries missing --max-duration timeout - fixes #4504 2021-03-13 09:25:44 +00:00
googlephotos_test.go fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
pattern.go gphotos: new flag --gphotos-include-archived - fixes #4728 2021-01-28 16:51:31 +00:00
pattern_test.go gphotos: new flag --gphotos-include-archived - fixes #4728 2021-01-28 16:51:31 +00:00