diff --git a/lib/runner/strategy.rb b/lib/runner/strategy.rb index 6844ed4d..b0e1a42d 100644 --- a/lib/runner/strategy.rb +++ b/lib/runner/strategy.rb @@ -33,7 +33,7 @@ class Runner::Strategy raise NotImplementedError end - def attach_to_execution(_command, _event_loop, _starting_time, _privileged_execution:) + def attach_to_execution(_command, _event_loop, _starting_time, privileged_execution:) raise NotImplementedError end diff --git a/lib/runner/strategy/docker_container_pool.rb b/lib/runner/strategy/docker_container_pool.rb index 0da9da30..8cb41a47 100644 --- a/lib/runner/strategy/docker_container_pool.rb +++ b/lib/runner/strategy/docker_container_pool.rb @@ -104,7 +104,7 @@ class Runner::Strategy::DockerContainerPool < Runner::Strategy Rails.logger.debug { "#{Time.zone.now.getutc.inspect}: Finished copying files" } end - def attach_to_execution(command, event_loop, starting_time, _privileged_execution: false) + def attach_to_execution(command, event_loop, starting_time, privileged_execution: false) # rubocop:disable Lint/UnusedMethodArgument for the keyword argument reset_inactivity_timer @command = command diff --git a/lib/runner/strategy/null.rb b/lib/runner/strategy/null.rb index 4d37e87a..242eebfd 100644 --- a/lib/runner/strategy/null.rb +++ b/lib/runner/strategy/null.rb @@ -25,7 +25,7 @@ class Runner::Strategy::Null < Runner::Strategy def copy_files(_files); end - def attach_to_execution(command, event_loop, starting_time, _privileged_execution: false) + def attach_to_execution(command, event_loop, starting_time, privileged_execution: false) # rubocop:disable Lint/UnusedMethodArgument for the keyword argument socket = Connection.new(nil, self, event_loop) # We don't want to return an error if the execution environment is changed socket.status = :terminated_by_codeocean if command == ExecutionEnvironment::VALIDATION_COMMAND