mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 08:25:43 +03:00
22 lines
441 B
Go
22 lines
441 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package consul
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/hashicorp/nomad/client/serviceregistration"
|
|
"github.com/hashicorp/nomad/nomad/structs"
|
|
)
|
|
|
|
func NoopRestarter() serviceregistration.WorkloadRestarter {
|
|
return noopRestarter{}
|
|
}
|
|
|
|
type noopRestarter struct{}
|
|
|
|
func (noopRestarter) Restart(ctx context.Context, event *structs.TaskEvent, failure bool) error {
|
|
return nil
|
|
}
|