Commit Graph

9 Commits

Author SHA1 Message Date
6084b00e23 Exit MonitorEvaluation once stream is closed
As we pass the context to the Nomad API event stream, they close
the event stream once the passed context is cancelled. We use this
to exit our receive loop on the event stream once the stream is closed,
instead of having to check the context manually.
2021-05-28 06:52:38 +00:00
f228a3e599 Add Nomad job registration with monitoring afterwards
Once a Nomad job is registered, we listen to the Nomad event stream
and return once we find the evaluation to complete.
2021-05-28 06:52:38 +00:00
4c3cc0cc4c Move Nomad job creation logic to environment manager 2021-05-28 06:52:38 +00:00
6da9080bce Add option to configure Nomad namespace 2021-05-18 12:10:39 +00:00
1f921b2ce2 Resolve merge conflicts 2021-05-12 12:02:12 +02:00
cee5eee622 Rename job scale functions to be consistent in naming 2021-05-12 10:46:15 +02:00
a2a9ed367a Add tests for api client creation 2021-05-12 10:46:11 +02:00
fde334a610 Perform a few renamings 2021-05-11 14:26:05 +02:00
94f02fad02 Add tests for LoadAvailableRunners method 2021-05-11 14:26:05 +02:00