matthewmueller/x-ray

Feature request: retry

Offen

#94 geöffnet am 17.09.2015

 (7 Kommentare) (7 Reaktionen) (0 zugewiesene Personen)JavaScript (415 Forks)batch import
featurehelp wanted

Repository-Metriken

Stars
 (5.804 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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)

Contributor Guide