mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Hide the number of reschedule attempts for unlimited rescheduling
This commit is contained in:
@@ -276,8 +276,11 @@ func formatAllocBasicInfo(alloc *api.Allocation, client *api.Client, uuidLength
|
||||
|
||||
if alloc.RescheduleTracker != nil && len(alloc.RescheduleTracker.Events) > 0 {
|
||||
attempts, total := alloc.RescheduleInfo(time.Unix(0, alloc.ModifyTime))
|
||||
reschedInfo := fmt.Sprintf("Reschedule Attempts|%d/%d", attempts, total)
|
||||
basic = append(basic, reschedInfo)
|
||||
// Show this section only if the reschedule policy limits the number of attempts
|
||||
if total > 0 {
|
||||
reschedInfo := fmt.Sprintf("Reschedule Attempts|%d/%d", attempts, total)
|
||||
basic = append(basic, reschedInfo)
|
||||
}
|
||||
}
|
||||
if alloc.NextAllocation != "" {
|
||||
basic = append(basic,
|
||||
|
||||
Reference in New Issue
Block a user