mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
core: propagate remote task handles
Add a new driver capability: RemoteTasks. When a task is run by a driver with RemoteTasks set, its TaskHandle will be propagated to the server in its allocation's TaskState. If the task is replaced due to a down node or draining, its TaskHandle will be propagated to its replacement allocation. This allows tasks to be scheduled in remote systems whose lifecycles are disconnected from the Nomad node's lifecycle. See https://github.com/hashicorp/nomad-driver-ecs for an example ECS remote task driver.
This commit is contained in:
@@ -43,6 +43,7 @@ func (b *driverPluginServer) Capabilities(ctx context.Context, req *proto.Capabi
|
||||
Exec: caps.Exec,
|
||||
MustCreateNetwork: caps.MustInitiateNetwork,
|
||||
NetworkIsolationModes: []proto.NetworkIsolationSpec_NetworkIsolationMode{},
|
||||
RemoteTasks: caps.RemoteTasks,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user