Skip to content

Instantly share code, notes, and snippets.

@cainlevy
Last active October 26, 2021 01:38
Show Gist options
  • Save cainlevy/adbc3961e3492538975c to your computer and use it in GitHub Desktop.
Save cainlevy/adbc3961e3492538975c to your computer and use it in GitHub Desktop.
sidekiq retries reference

Sidekiq Retries

Want to use Sidekiq's exponential backoff, but give up sooner? This table will help you pick a retry number.

class MyWorker
  ...
  sidekiq_options retry: N
  ...
end
retry average delay cum. seconds cum. minutes cum. hours cum. days
1 30 30 0.5 0.0 0.0
2 46 76 1.3 0.0 0.0
3 76 152 2.5 0.0 0.0
4 156 308 5.1 0.1 0.0
5 346 654 10.9 0.2 0.0
6 730 1384 23.1 0.4 0.0
7 1416 2800 46.7 0.8 0.0
8 2536 5336 88.9 1.5 0.1
9 4246 9582 159.7 2.7 0.1
10 6726 16308 271.8 4.5 0.2
11 10180 26488 441.5 7.4 0.3
12 14836 41324 688.7 11.5 0.5
13 20946 62270 1037.8 17.3 0.7
14 28786 91056 1517.6 25.3 1.1
15 38656 129712 2161.9 36.0 1.5
16 50880 180592 3009.9 50.2 2.1
17 65806 246398 4106.6 68.4 2.9
18 83806 330204 5503.4 91.7 3.8
19 105276 435480 7258.0 121.0 5.0
20 130636 566116 9435.3 157.3 6.6
21 160330 726446 12107.4 201.8 8.4
22 194826 921272 15354.5 255.9 10.7
23 234616 1155888 19264.8 321.1 13.4
24 280216 1436104 23935.1 398.9 16.6
25 332166 1768270 29471.2 491.2 20.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment