matthewmueller/x-ray

Feature request: retry

Open

#94 aperta il 17 set 2015

Vedi su GitHub
 (7 commenti) (7 reazioni) (0 assegnatari)JavaScript (415 fork)batch import
featurehelp wanted

Metriche repository

Star
 (5804 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Great project that has been incredibly useful!!!

I would like the ability to have X-Ray automatically retry when a connection times out, for the number of times I specify. Before the first retry, the configured .delay would be applied. Each subsequent try the delay time would be doubled until the maximum number of retries had been exceeded.

The API would simply be

xray.retry(maxAttempts)

Guida contributor