executor: update driver references

This commit is contained in:
Nick Ethier
2018-12-05 11:04:18 -05:00
parent 467930f650
commit 2d33d48980
10 changed files with 39 additions and 34 deletions

View File

@@ -1,18 +1,19 @@
package java
import (
"context"
"strconv"
"sync"
"time"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/go-plugin"
"github.com/hashicorp/nomad/drivers/shared/executor"
"github.com/hashicorp/nomad/drivers/shared/executor/structs"
"github.com/hashicorp/nomad/plugins/drivers"
)
type taskHandle struct {
exec executor.Executor
exec structs.Executor
pid int
pluginClient *plugin.Client
logger hclog.Logger
@@ -57,7 +58,7 @@ func (h *taskHandle) run() {
}
h.stateLock.Unlock()
ps, err := h.exec.Wait()
ps, err := h.exec.Wait(context.Background())
h.stateLock.Lock()
defer h.stateLock.Unlock()