Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
797fd04e
Commit
797fd04e
authored
4 years ago
by
Jasmine Dahilig
Browse files
Options
Download
Email Patches
Plain Diff
lifecycle: update comments in tracker
parent
e99d05b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
client/allochealth/tracker.go
+2
-3
client/allochealth/tracker.go
with
2 additions
and
3 deletions
+2
-3
client/allochealth/tracker.go
+
2
-
3
View file @
797fd04e
...
...
@@ -66,8 +66,8 @@ type Tracker struct {
// not needed
allocStopped
chan
struct
{}
// lifecycleTasks is a
set
of
tasks with
lifecycle hook
set and may
// terminate without affecting alloc health
// lifecycleTasks is a
map
of
ephemeral tasks and their
lifecycle hook
s.
//
These tasks may
terminate without affecting alloc health
lifecycleTasks
map
[
string
]
string
// l is used to lock shared fields listed below
...
...
@@ -290,7 +290,6 @@ func (t *Tracker) watchTaskEvents() {
return
}
// Ignore poststop since it will be pending until the main job exists
if
state
.
State
==
structs
.
TaskStatePending
{
latestStartTime
=
time
.
Time
{}
break
...
...
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