matthewmueller/x-ray

Feature request: retry

開放

#94 建立於 2015年9月17日

 (7 則留言) (7 個反應) (0 位負責人)JavaScript (415 個分叉)batch import
featurehelp wanted

倉庫指標

星標
 (5,804 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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)

貢獻者指南