Attach duration information to the exception object
This commit is contained in:

committed by
Sebastian Serth

parent
36578a2817
commit
2dff81a510
@ -86,13 +86,11 @@ class Runner::Strategy::Poseidon < Runner::Strategy
|
||||
end
|
||||
|
||||
def attach_to_execution(command)
|
||||
starting_time = Time.zone.now
|
||||
websocket_url = execute_command(command)
|
||||
EventMachine.run do
|
||||
socket = Connection.new(websocket_url, self)
|
||||
yield(socket)
|
||||
end
|
||||
Time.zone.now - starting_time # execution duration
|
||||
end
|
||||
|
||||
def destroy_at_management
|
||||
|
Reference in New Issue
Block a user