From fa6707ae5cbe7c203cc293fedc1785226263e9e5 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Tue, 8 Mar 2016 12:02:55 -0800 Subject: [PATCH] Making the docker fingerprinter periodic --- client/driver/docker.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/driver/docker.go b/client/driver/docker.go index e7d671c8addd..ac1c842b6275 100644 --- a/client/driver/docker.go +++ b/client/driver/docker.go @@ -22,7 +22,6 @@ import ( "github.com/hashicorp/nomad/client/config" "github.com/hashicorp/nomad/client/driver/logging" cstructs "github.com/hashicorp/nomad/client/driver/structs" - "github.com/hashicorp/nomad/client/fingerprint" "github.com/hashicorp/nomad/helper/discover" "github.com/hashicorp/nomad/nomad/structs" "github.com/mitchellh/mapstructure" @@ -42,7 +41,6 @@ const ( type DockerDriver struct { DriverContext - fingerprint.StaticFingerprinter } type DockerDriverAuth struct { @@ -415,6 +413,10 @@ func (d *DockerDriver) recoverablePullError(err error, image string) error { return cstructs.NewRecoverableError(fmt.Errorf("Failed to pull `%s`: %s", image, err), recoverable) } +func (d *DockerDriver) Periodic() (bool, time.Duration) { + return true, 15 * time.Second +} + func (d *DockerDriver) Start(ctx *ExecContext, task *structs.Task) (DriverHandle, error) { var driverConfig DockerDriverConfig if err := mapstructure.WeakDecode(task.Config, &driverConfig); err != nil {