Skip to content

Commit

Permalink
Merge pull request #432 from SiaFoundation/pj/fix-interrupted-migrations
Browse files Browse the repository at this point in the history
Ignore Signal
  • Loading branch information
ChrisSchinnerl committed Jun 20, 2023
2 parents 14d8eac + 8ed8527 commit e4a5028
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autopilot/migrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ func (m *migrator) performMigrations(p *workerPool, cfg api.AutopilotConfig) {
})
var toMigrate []api.UnhealthySlab

// ignore a potential signal before the first iteration of the 'OUTER' loop
select {
case <-m.signalMaintenanceFinished:
default:
}

OUTER:
for {
// fetch slabs for migration
Expand Down

0 comments on commit e4a5028

Please sign in to comment.