
Previously, the same runner could be used multiple times with different submissions simultaneously. This, however, yielded errors, for example when one submission time oud (causing the running to be deleted) while another submission was still executed. Admin actions, such as the shell, can be still executed regardless of any other code execution. Fixes CODEOCEAN-HG Fixes openHPI/poseidon#423
34 lines
660 B
Ruby
34 lines
660 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Runner
|
|
class Error < ApplicationError
|
|
attr_accessor :waiting_duration, :execution_duration, :starting_time
|
|
|
|
class BadRequest < Error; end
|
|
|
|
class EnvironmentNotFound < Error; end
|
|
|
|
class ExecutionTimeout < Error; end
|
|
|
|
class InternalServerError < Error; end
|
|
|
|
class NotAvailable < Error; end
|
|
|
|
class Unauthorized < Error; end
|
|
|
|
class RunnerInUse < Error; end
|
|
|
|
class RunnerNotFound < Error; end
|
|
|
|
class FaradayError < Error; end
|
|
|
|
class UnexpectedResponse < Error; end
|
|
|
|
class WorkspaceError < Error; end
|
|
|
|
class OutOfMemory < Error; end
|
|
|
|
class Unknown < Error; end
|
|
end
|
|
end
|