sevensolutions / nomad-iis

🧩 A TaskDriver plugin for HashiCorp Nomad to run IIS workloads.
https://nomad-iis.sevensolutions.cc/
MIT License
14 stars 1 forks source link

Custom API Signals #27

Open sevensolutions opened 11 months ago

sevensolutions commented 11 months ago

It would be a cool idea to allow to define some REST-API calls which can then be invoked by a signal. Something like:

signal {
  name = "SIGUSR1"
  path = "/api/signals/sigusr1"
  method = "GET"
  headers = {
    X-Api-Key = "Some API Key"
  }
}

May be usefull to execute some management tasks. The API may listen to localhost only.

sevensolutions commented 10 months ago

https://github.com/hashicorp/nomad/pull/18794 will also introduce job actions.