Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azioni in seguito a response status 429 #5

Closed
franthemanIT opened this issue Oct 9, 2021 · 1 comment
Closed

Azioni in seguito a response status 429 #5

franthemanIT opened this issue Oct 9, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@franthemanIT
Copy link
Collaborator

Le API di IO inviano una response con status 429 in caso di sistemi sovraccarichi.
La guida tecnica di IO raccomanda in tal caso di tentare nuovamente l'invio e diradare la frequenza delle chiamate.
parlaConIO non implementa questa raccomandazione ma lo farà presto.

Nel frattempo invito chiunque utilizzi parlaConIO a adottare le opportune cautele.

@franthemanIT franthemanIT added the enhancement New feature or request label Oct 9, 2021
@franthemanIT
Copy link
Collaborator Author

Codice modificato per gestire il response status 429.
Logica: a ogni status 429 ricevuto si fa subito una pausa (configurabiel) e si incrementa di un passo fisso (configurabile) il tempo di attesa fra due chiamate.
Al raggiungimento del massimo (configurabile) per il tempo di attesa fra due chiamate si interrompe l'esecuzione del programma, si producono i file di output dei dati processati e si resistuisce un file CSV con i dati rimasti in cosa e non elaborati (da utilizzare per una successiva esecuzione per completare l'invio del lotto).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant