fix(lock): increase stale duration from 10s to 20s
This commit is contained in:
1 parent
b5fbbbf6d7
commit
1f3fa7991f
1 file changed
+1
-1
+1
-1
@@ -10,7 +10,7 @@ async function lock(lockFilename: string, firstTime: boolean): Promise<{}> {
|
||||
const promise = new Promise((resolve, reject) => {
|
||||
lockfile.lock(
|
||||
lockFilename,
|
||||
{realpath: false},
|
||||
{realpath: false, stale: 20 * 1000},
|
||||
async (err: Error & {code: string}) => {
|
||||
if (err && err.code === 'ELOCKED') {
|
||||
if (firstTime) {
|
||||
|
||||
Reference in new issue
Block a user