Files
codeocean/lib/runner/strategy.rb
Sebastian Serth 0dd931fba1 Add runner management health check for /ping
Even though we can check the health of the runner management, we would like to ensure an external health check validates the availability of all required services.
2023-03-13 22:54:14 +01:00

72 lines
1.3 KiB
Ruby

# frozen_string_literal: true
class Runner::Strategy
def initialize(_runner_id, environment)
@execution_environment = environment
end
def self.initialize_environment
raise NotImplementedError
end
def self.environments
raise NotImplementedError
end
def self.sync_environment(_environment)
raise NotImplementedError
end
def self.remove_environment(_environment)
raise NotImplementedError
end
def self.request_from_management(_environment)
raise NotImplementedError
end
def destroy_at_management
raise NotImplementedError
end
def copy_files(_files)
raise NotImplementedError
end
def retrieve_files(path: './', recursive: true, privileged_execution: false)
raise NotImplementedError
end
def download_file(_file, privileged_execution:, &_block)
raise NotImplementedError
end
def attach_to_execution(_command, _event_loop, _starting_time, privileged_execution:)
raise NotImplementedError
end
def self.available_images
raise NotImplementedError
end
def self.config
raise NotImplementedError
end
def self.health
raise NotImplementedError
end
def self.release
raise NotImplementedError
end
def self.pool_size
raise NotImplementedError
end
def self.websocket_header
raise NotImplementedError
end
end