Skip to content

Commit 2c1246e

Browse files
authored
fix(new-compiler): prevent ELOCKED errors during parallel builds (#1932)
1 parent 4ecfb9a commit 2c1246e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/major-weeks-sing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@lingo.dev/compiler": patch
3+
---
4+
5+
Fixed metadata file lock contention errors (ELOCKED) during parallel builds by increasing lock retry count and timeouts

packages/new-compiler/src/metadata/manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ export class MetadataManager {
168168

169169
const release = await lockfile.lock(this.filePath, {
170170
retries: {
171-
retries: 10,
171+
retries: 20,
172172
minTimeout: 50,
173-
maxTimeout: 1000,
173+
maxTimeout: 2000,
174174
},
175-
stale: 2000,
175+
stale: 5000,
176176
});
177177

178178
try {

0 commit comments

Comments
 (0)