iterative / iterative/PyDrive2

retries for failed API requests

Ouverte
#41 2 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
Python
Étoiles
670
Forks
75
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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!

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start with pydrive2/auth.py around the initial client creation referenced in the issue, then trace how googleapiclient is used for Drive operations. Compare the requested behavior with the linked Drive API and googleapiclient retry guidance; done means failed Drive requests and initial discovery creation retry according to those recommendations.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
api
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.