1
0
Эх сурвалжийг харах

chore: Reduce stale lock timeout from 10 minutes to 2 minutes

Colby McHenry 3 сар өмнө
parent
commit
3ec4cde542
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/utils.ts

+ 1 - 1
src/utils.ts

@@ -185,7 +185,7 @@ export class FileLock {
   private held = false;
 
   /** Locks older than this are considered stale regardless of PID status */
-  private static readonly STALE_TIMEOUT_MS = 10 * 60 * 1000; // 10 minutes
+  private static readonly STALE_TIMEOUT_MS = 2 * 60 * 1000; // 2 minutes
 
   constructor(lockPath: string) {
     this.lockPath = lockPath;