MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / GetInstanceLockPath

Function GetInstanceLockPath

utils/lockfile.go:21–23  ·  view source on GitHub ↗
(instanceID string)

Source from the content-addressed store, hash-verified

19}
20
21func GetInstanceLockPath(instanceID string) string {
22 return filepath.Join(GetLockDir(), fmt.Sprintf("tnr-%s.lock", instanceID))
23}
24
25// AcquireInstanceLock attempts to acquire an exclusive lock for the given instance.
26// Returns an InstanceLock if successful, or an error if the lock cannot be acquired.

Callers 2

AcquireInstanceLockFunction · 0.85
IsInstanceLockedFunction · 0.85

Calls 1

GetLockDirFunction · 0.85

Tested by

no test coverage detected