Use a stable workspace lock for coordination

This commit is contained in:
2026-12-01 20:13:16 +00:00
parent 8e4627e262
commit 038105ece9
11 changed files with 140 additions and 101 deletions

View File

@@ -33,7 +33,7 @@ type Store interface {
ExistsRef(ref Ref) (bool, error)
WriteFileAtomic(path string, data []byte, perm os.FileMode) error
Checksum(path string) (string, error)
AcquireSessionLockFor(campaign, sessionID string) (*LockHandle, error)
AcquireSessionLockForContext(ctx context.Context, campaign, sessionID string) (*LockHandle, error)
ReleaseSessionLock(lock *LockHandle) error
AcquireWorkspaceLock() (*LockHandle, error)
AcquireWorkspaceLockContext(ctx context.Context) (*LockHandle, error)
ReleaseWorkspaceLock(lock *LockHandle) error
}