iterative / iterative/PyDrive2

retries for failed API requests

オープン
#41 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
670
フォーク
75
PR マージ指標
30日以内にマージされた PR はありません

説明

Currently, pydrive2 uses googleapiclient for all Drive API operations, but doesn't retry any failed requests. However, the Drive API [recommends retries with exponential backoff](https://developers.google.com/drive/api/v3/handle-errors) for many errors, and [googleapiclient supports retries](https://github.com/googleapis/google-api-python-client/blob/c482712935d1c1331e33bd7f9968bd3b2be223bb/googleapiclient/http.py#L846) for all requests.

Would it be possible to add retry behavior as per the Drive API recommendations?

(Additionally, it'd be great to add this for the [initial client creation](https://github.com/iterative/PyDrive2/blob/c739ba379e4c656da5e229a21c39a4d621ada09b/pydrive2/auth.py#L610-L612), as the discovery service can also throw 500s.)

Thanks!

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。