Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
22682fa7cf |
@@ -432,8 +432,8 @@ With the defaults a file that is going to fail gives up after at most three and
|
|||||||
a half seconds of waiting. `quak backup` usually runs from cron with nobody
|
a half seconds of waiting. `quak backup` usually runs from cron with nobody
|
||||||
watching, so every request it makes uses the second column instead, exported as
|
watching, so every request it makes uses the second column instead, exported as
|
||||||
`UNATTENDED_RETRY_OPTIONS`: a request that keeps failing gives up after at most
|
`UNATTENDED_RETRY_OPTIONS`: a request that keeps failing gives up after at most
|
||||||
243 seconds, about four minutes, of waiting, so an outage of a few minutes does
|
243 seconds of waiting, and usually after about half that, since each wait is
|
||||||
not fail files until the next run. Every other command uses the defaults. A
|
drawn at random below its ceiling. Every other command uses the defaults. A
|
||||||
library user gets the same budget by passing `UNATTENDED_RETRY_OPTIONS` as
|
library user gets the same budget by passing `UNATTENDED_RETRY_OPTIONS` as
|
||||||
`ApiClientOptions.retry`. `sleep` and `random` are injectable through the same
|
`ApiClientOptions.retry`. `sleep` and `random` are injectable through the same
|
||||||
option, which is how the test suite exercises the whole policy without waiting.
|
option, which is how the test suite exercises the whole policy without waiting.
|
||||||
|
|||||||
+3
-3
@@ -37,9 +37,9 @@ export const DEFAULT_RETRY_OPTIONS: ResolvedRetryOptions = {
|
|||||||
random: Math.random,
|
random: Math.random,
|
||||||
};
|
};
|
||||||
|
|
||||||
// For a run nobody is watching, such as `quak backup` from cron: it rides out
|
// For a run nobody is watching, such as `quak backup` from cron. A request that
|
||||||
// an outage of a few minutes instead of failing every file until the next run.
|
// keeps failing waits at most 243 s in all before it gives up, usually about
|
||||||
// A request that keeps failing waits at most 243 s in all before it gives up.
|
// half that, since each wait is drawn at random below its ceiling.
|
||||||
export const UNATTENDED_RETRY_OPTIONS: ResolvedRetryOptions = {
|
export const UNATTENDED_RETRY_OPTIONS: ResolvedRetryOptions = {
|
||||||
...DEFAULT_RETRY_OPTIONS,
|
...DEFAULT_RETRY_OPTIONS,
|
||||||
attempts: 10,
|
attempts: 10,
|
||||||
|
|||||||
Reference in New Issue
Block a user