diff --git a/.changelog/10849.txt b/.changelog/10849.txt new file mode 100644 index 000000000000..b595ace15ae1 --- /dev/null +++ b/.changelog/10849.txt @@ -0,0 +1,3 @@ +```release-note:bug +drivers: Fixed bug where Nomad incorrectly reported tasks as recovered successfully even when they were not. +``` diff --git a/client/allocrunner/taskrunner/task_runner.go b/client/allocrunner/taskrunner/task_runner.go index b1f7643bda74..e68f5e7df06c 100644 --- a/client/allocrunner/taskrunner/task_runner.go +++ b/client/allocrunner/taskrunner/task_runner.go @@ -1102,10 +1102,9 @@ func (tr *TaskRunner) restoreHandle(taskHandle *drivers.TaskHandle, net *drivers "error", err, "task_id", taskHandle.Config.ID) } - return false } - return true + return false } // Update driver handle on task runner