MCPcopy Index your code
hub / github.com/simstudioai/sim / releaseLease

Function releaseLease

apps/sim/lib/execution/isolated-vm.ts:1369–1375  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1367
1368 let settled = false
1369 const releaseLease = () => {
1370 if (settled) return
1371 settled = true
1372 releaseDistributedLease(ownerKey, distributedLeaseId).catch((error) => {
1373 logger.error('Failed to release distributed lease', { ownerKey, error })
1374 })
1375 }
1376
1377 const state: ExecutionState = { cancelled: false }
1378

Callers 2

resolveWithReleaseFunction · 0.85
executeInIsolatedVMFunction · 0.85

Calls 2

releaseDistributedLeaseFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected