Forward input as raw_event to runner
* Also, rename #send to #send_data in order to prevent debugging issues in RubyMine
This commit is contained in:
@ -43,7 +43,7 @@ class Runner::Connection
|
||||
end
|
||||
|
||||
# Send arbitrary data in the WebSocket connection
|
||||
def send(raw_data)
|
||||
def send_data(raw_data)
|
||||
encoded_message = encode(raw_data)
|
||||
Rails.logger.debug { "#{Time.zone.now.getutc}: Sending to #{@socket.url}: #{encoded_message.inspect}" }
|
||||
@socket.send(encoded_message)
|
||||
|
@ -64,7 +64,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy
|
||||
socket = Connection.new(websocket_url, self, event_loop)
|
||||
begin
|
||||
Timeout.timeout(@execution_environment.permitted_execution_time) do
|
||||
socket.send(command)
|
||||
socket.send_data(command)
|
||||
yield(socket)
|
||||
event_loop.wait
|
||||
event_loop.stop
|
||||
|
Reference in New Issue
Block a user