Class: HermesAgent::Client::Entities::RunStop

Inherits:
HermesAgent::Client::Entity show all
Defined in:
lib/hermes_agent/client/entities/run.rb

Overview

The acknowledgement returned by stopping a run (Resources::Runs#stop): {run_id, status: "stopping"}. Stop is cooperative — this ack only confirms the stop was accepted; the run then resolves to a terminal "cancelled" status, observable by polling Resources::Runs#get. It is deliberately not a full Run (it carries no output, usage, or timestamps).

Instance Method Summary collapse

Methods inherited from HermesAgent::Client::Entity

#==, #[], #eql?, #hash, #to_h

Instance Method Details

#run_idString?

The id of the run being stopped ("run_…").

Returns:

  • (String, nil)


169
170
171
# File 'lib/hermes_agent/client/entities/run.rb', line 169

def run_id
  self["run_id"]
end

#statusString?

The status acknowledged by the stop, "stopping".

Returns:

  • (String, nil)


177
178
179
# File 'lib/hermes_agent/client/entities/run.rb', line 177

def status
  self["status"]
end