AnswerDotAI / AnswerDotAI/ghapi
Add retries and timeout options to API calls
- Lingua principale
- Python
- Stelle
- 686
- Fork
- 69
- Merge medio
- 1m
- PR unite (30g)
- 2
Descrizione
Add to all the API calls the `retries` and `timeout` options to manage the error responses. Consider a `retry-wait` option to manage retry speed.
`retries` - number of times to try the request before failing (default=1)
`timeout` - time to wait before interpreting the request as failed
`retry-wait` - the base time to wait between tries for exponential backoff
Note: `retries` should probably be `tries` but the parameter name retries is in too wide use to fight against.
It would be useful if these options were added to GhApi as defaults for all API calls made.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando GhApi e il modo in cui effettua le chiamate API, quindi individua dove è possibile applicare valori predefiniti condivisi. Definisci e verifica i tentativi, il timeout e il comportamento opzionale di attesa tra i tentativi per tutte le chiamate, incluso il numero predefinito documentato di tentativi e l’aspettativa di un backoff esponenziale.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- openapi, python
- Ambito
- api
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100