Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
00bea00b
Unverified
Commit
00bea00b
authored
7 years ago
by
Preetha Appan
Browse files
Options
Download
Email Patches
Plain Diff
Remove unused method
parent
ace9c4bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/tasks.go
+0
-15
api/tasks.go
with
0 additions
and
15 deletions
+0
-15
api/tasks.go
+
0
-
15
View file @
00bea00b
...
...
@@ -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
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help