Class: Nomad::System
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#gc(**options) ⇒ true
Initiates garbage collection of jobs, evaluations, allocations, and nodes.
-
#reconcile_summaries(**options) ⇒ true
Reconciles the summaries of all registered jobs.
Methods inherited from Request
Constructor Details
This class inherits a constructor from Nomad::Request
Instance Method Details
#gc(**options) ⇒ true
Initiates garbage collection of jobs, evaluations, allocations, and nodes. This is an async operation that always returns true, unless an error is encountered when communicating with the Nomad API.
25 26 27 28 |
# File 'lib/nomad/api/system.rb', line 25 def gc(**) client.put("/v1/system/gc", ) return true end |
#reconcile_summaries(**options) ⇒ true
Reconciles the summaries of all registered jobs.
39 40 41 42 |
# File 'lib/nomad/api/system.rb', line 39 def reconcile_summaries(**) client.put("/v1/system/reconcile/summaries", ) return true end |