Skip to content

Commit

Permalink
Merge pull request #164 from sonroyaalmerol/fix-cpu-usage
Browse files Browse the repository at this point in the history
prevent closed channel panic
  • Loading branch information
sonroyaalmerol authored Feb 14, 2025
2 parents 9d6ebc2 + a79140b commit abb1850
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/backend/backup/jobrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ func RunBackup(ctx context.Context, job *types.Job, storeInstance *store.Store,
lastErr = err
log.Printf("Backup attempt %d execution failed: %v", attempt, err)
time.Sleep(1 * time.Second)

autoOp.started = make(chan struct{})
continue
}
// A backup attempt succeeded.
Expand Down

0 comments on commit abb1850

Please sign in to comment.