mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-05-04 12:00:36 +00:00
fix: allow 'run command' tasks to proceed in parallel to other repo operations
Build Snapshot Release / build (push) Waiting to run
Docs / build (push) Waiting to run
Docs / deploy (push) Blocked by required conditions
Release Please / release-please (push) Waiting to run
Test / test-nix (push) Waiting to run
Test / test-win (push) Waiting to run
Build Snapshot Release / build (push) Waiting to run
Docs / build (push) Waiting to run
Docs / deploy (push) Blocked by required conditions
Release Please / release-please (push) Waiting to run
Test / test-nix (push) Waiting to run
Test / test-win (push) Waiting to run
This commit is contained in:
@@ -388,10 +388,9 @@ func (r *RepoOrchestrator) AddTags(ctx context.Context, snapshotIDs []string, ta
|
||||
return nil
|
||||
}
|
||||
|
||||
// RunCommand runs a command in the repo's environment. Output is buffered and sent to the onProgress callback in batches.
|
||||
// RunCommand runs a command in the repo's environment.
|
||||
// NOTE: this function does not lock the repo.
|
||||
func (r *RepoOrchestrator) RunCommand(ctx context.Context, command string, writer io.Writer) error {
|
||||
r.mu.Lock()
|
||||
defer r.mu.Unlock()
|
||||
ctx, flush := forwardResticLogs(ctx)
|
||||
defer flush()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user