mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Remove unused method
This commit is contained in:
15
api/tasks.go
15
api/tasks.go
@@ -106,21 +106,6 @@ func (r *ReschedulePolicy) Copy() *ReschedulePolicy {
|
||||
return nrp
|
||||
}
|
||||
|
||||
func (r *ReschedulePolicy) Empty() bool {
|
||||
if r == nil {
|
||||
return true
|
||||
}
|
||||
|
||||
if r.Attempts != nil && *r.Attempts != 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
if r.Interval != nil && *r.Interval != 0 {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// CheckRestart describes if and when a task should be restarted based on
|
||||
// failing health checks.
|
||||
type CheckRestart struct {
|
||||
|
||||
Reference in New Issue
Block a user