Skip to content

Commit

Permalink
extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
pkazmierczak committed Dec 16, 2024
1 parent 324e17a commit bfd9fbd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scheduler/generic_sched.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,9 @@ func (s *GenericScheduler) computePlacements(destructive, place []placementResul
updateRescheduleTracker(alloc, prevAllocation, now)
}

alloc.HostVolumeIDs = prevAllocation.HostVolumeIDs
if len(prevAllocation.HostVolumeIDs) > 0 {
alloc.HostVolumeIDs = prevAllocation.HostVolumeIDs
}

// If the allocation has task handles,
// copy them to the new allocation
Expand Down

0 comments on commit bfd9fbd

Please sign in to comment.