Files
codeocean/lib/runner/strategy.rb
Felix Auringer 704407b9fc Add strategy for DockerContainerPool
In order to provide an alternative to Poseidon, a strategy for the
DockerContainerPool is added that is used by the runner model.

Co-authored-by: Sebastian Serth <Sebastian.Serth@hpi.de>
2021-11-01 17:12:51 +01:00

24 lines
419 B
Ruby

# frozen_string_literal: true
class Runner::Strategy
def initialize(_runner_id, environment)
@execution_environment = environment
end
def self.request_from_management
raise NotImplementedError
end
def destroy_at_management
raise NotImplementedError
end
def copy_files(_files)
raise NotImplementedError
end
def attach_to_execution(_command)
raise NotImplementedError
end
end