Report workspace lock acquisition before waiting

This commit is contained in:
2026-12-02 00:38:15 +00:00
parent 4d7fc57a5e
commit 89c8e5de3c
8 changed files with 108 additions and 11 deletions

View File

@@ -87,7 +87,7 @@ func cleanSelectedSession(ctx context.Context, input *cleanCommandInput, deps co
}
if !input.DryRun {
store := deps.newWorkspaceStore(pipeline.Workspace.Root)
lock, lockErr := store.AcquireWorkspaceLockContext(ctx)
lock, lockErr := acquireWorkspaceLock(ctx, store, pipeline.Workspace.Root, deps.reporter)
if lockErr != nil {
return report, fmt.Errorf("clean: acquire workspace lock: %w", lockErr)
}