Skip to content

Commit 3397a01

Browse files
committed
fix: allow 'run command' tasks to proceed in parallel to other repo operations
1 parent cc4daee commit 3397a01

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

internal/orchestrator/repo/repo.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,9 @@ func (r *RepoOrchestrator) AddTags(ctx context.Context, snapshotIDs []string, ta
388388
return nil
389389
}
390390

391-
// RunCommand runs a command in the repo's environment. Output is buffered and sent to the onProgress callback in batches.
391+
// RunCommand runs a command in the repo's environment.
392+
// NOTE: this function does not lock the repo.
392393
func (r *RepoOrchestrator) RunCommand(ctx context.Context, command string, writer io.Writer) error {
393-
r.mu.Lock()
394-
defer r.mu.Unlock()
395394
ctx, flush := forwardResticLogs(ctx)
396395
defer flush()
397396

0 commit comments

Comments
 (0)