Report workspace lock acquisition before waiting
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user