fix: fix proper-lock-file configuration (#10356)
Turns out we were using wrong formula; with the config we had in place, proper-lock-file would give up to aquire lock after 49 seconds of waiting. With the proper configuration, we'll keep re-trying for 10 minutes. Fixes #10354
This commit is contained in:
parent
4747b6e880
commit
82002b2803
|
|
@ -550,10 +550,10 @@ export class Registry {
|
||||||
try {
|
try {
|
||||||
releaseLock = await lockfile.lock(registryDirectory, {
|
releaseLock = await lockfile.lock(registryDirectory, {
|
||||||
retries: {
|
retries: {
|
||||||
retries: 10,
|
|
||||||
// Retry 20 times during 10 minutes with
|
// Retry 20 times during 10 minutes with
|
||||||
// exponential back-off.
|
// exponential back-off.
|
||||||
// See documentation at: https://www.npmjs.com/package/retry#retrytimeoutsoptions
|
// See documentation at: https://www.npmjs.com/package/retry#retrytimeoutsoptions
|
||||||
|
retries: 20,
|
||||||
factor: 1.27579,
|
factor: 1.27579,
|
||||||
},
|
},
|
||||||
onCompromised: (err: Error) => {
|
onCompromised: (err: Error) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue