Nomad not deregistering services from consul after they moved node


We are using Consul to register Nomad services via service and check stanza.

After a service fails and moves nodes, the old (and failed) check ID is still showing in Consul.
I’m not sure this can help but I read about the parameter DeregisterCriticalServiceAfter in the Consul Check documentation

I also tried my luck adding it to the check stanza, but unfortmnaly Consul supports it but not Nomad:

    service {
      name = "test"
      port = 80

      check {
        name     = "alive"
        port     = "http"
        type     = "http"
        path     = "/"
        interval = "10s"
        timeout  = "2s"
        deregister_critical_service_after = "1m"