File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ const metadataLimit = 1024 * 1024;
4646const manifestLimit = 1024 * 1024 ;
4747const transactionLimit = 64 * 1024 ;
4848const lockControlLimit = 4 * 1024 ;
49+ const reportLockWaitMs = 60_000 ;
4950const visualEntryLimit = 512 ;
5051const visualDepthLimit = 24 ;
5152const visualBytesLimit = 20 * 1024 * 1024 ;
@@ -456,7 +457,8 @@ function acquireLock() {
456457 const pinnedTombstones = pinnedDirectory ( ".retention-tombstones" , pinnedStackRoot . real , "report retention tombstone directory" ) ;
457458 retentionTombstoneDescriptor = pinnedTombstones . descriptor ;
458459 const lock = path . join ( stackRoot , ".publish.lock" ) ;
459- for ( let attempt = 0 ; attempt < 300 ; attempt += 1 ) {
460+ const lockDeadline = Date . now ( ) + reportLockWaitMs ;
461+ while ( Date . now ( ) < lockDeadline ) {
460462 const token = crypto . randomUUID ( ) ;
461463 const candidate = path . join ( stackRoot , `.publish.lock.candidate.${ process . pid } .${ token } ` ) ;
462464 try {
You can’t perform that action at this time.
0 commit comments