hashicorp / nomad-driver-lxc

HashiCorp Nomad LXC driver plugin
Mozilla Public License 2.0
31 stars 19 forks source link

What is the purpose of Shutdown(ctx context.Context) ? #15

Open arianvp opened 5 years ago

arianvp commented 5 years ago

https://github.com/hashicorp/nomad-driver-lxc/blob/6e65342e8597c6633721c677f3e250bb44c46192/lxc/driver.go#L184

Reading the nomad source code, this function is never called by nomad. Instead, nomad calls a function Shutdown() error (without a context) instead.

I am asking because i'm trying to implement my own driver and I can't get it to cleanly shutdown