Commit be7adb9 1 parent 340fe58 commit be7adb9 Copy full SHA for be7adb9
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -525,21 +525,21 @@ func (ar *allocRunner) handleTaskStateUpdates() {
525
525
states := make (map [string ]* structs.TaskState , trNum )
526
526
527
527
for name , tr := range ar .tasks {
528
- state := tr .TaskState ()
529
- states [name ] = state
528
+ taskState := tr .TaskState ()
529
+ states [name ] = taskState
530
530
531
531
if tr .IsPoststopTask () {
532
532
continue
533
533
}
534
534
535
535
// Capture live task runners in case we need to kill them
536
- if state .State != structs .TaskStateDead {
536
+ if taskState .State != structs .TaskStateDead {
537
537
liveRunners = append (liveRunners , tr )
538
538
continue
539
539
}
540
540
541
541
// Task is dead, determine if other tasks should be killed
542
- if state .Failed {
542
+ if taskState .Failed {
543
543
// Only set failed event if no event has been
544
544
// set yet to give dead leaders priority.
545
545
if killEvent == nil {
You can’t perform that action at this time.
0 commit comments