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

Function setForkLockTimeout

apps/sim/lib/workspaces/fork/lineage/lineage.ts:80–82  ·  view source on GitHub ↗
(tx: DbOrTx)

Source from the content-addressed store, hash-verified

78 * transaction, before acquiring any lock.
79 */
80export async function setForkLockTimeout(tx: DbOrTx): Promise<void> {
81 await tx.execute(sql`select set_config('lock_timeout', ${`${FORK_LOCK_TIMEOUT_MS}ms`}, true)`)
82}
83
84/**
85 * Serialize concurrent promote/rollback on a fork edge with a transaction-scoped

Callers 4

createForkFunction · 0.90
rollbackForkFunction · 0.90
promoteForkFunction · 0.90
route.tsFile · 0.90

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected