open-nomad/e2e/operator_scheduler/input/basic.nomad
James Rasell 181b247384
core: allow pausing and un-pausing of leader broker routine (#13045)
* core: allow pause/un-pause of eval broker on region leader.

* agent: add ability to pause eval broker via scheduler config.

* cli: add operator scheduler commands to interact with config.

* api: add ability to pause eval broker via scheduler config

* e2e: add operator scheduler test for eval broker pause.

* docs: include new opertor scheduler CLI and pause eval API info.
2022-07-06 16:13:48 +02:00

22 lines
331 B
HCL

job "operator_scheduler" {
datacenters = ["dc1"]
type = "batch"
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
group "operator_scheduler" {
task "test" {
driver = "raw_exec"
config {
command = "bash"
args = ["-c", "sleep 1"]
}
}
}
}