From df43eed9c33d886a6a306441e9b51dc7c2f0859f Mon Sep 17 00:00:00 2001 From: Sebastian Sergelius Date: Wed, 12 May 2021 17:10:39 +0300 Subject: [PATCH] Handle InternalSandboxError by returning true --- app/models/remote_sandbox.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/remote_sandbox.rb b/app/models/remote_sandbox.rb index cc475f496..e472670fd 100644 --- a/app/models/remote_sandbox.rb +++ b/app/models/remote_sandbox.rb @@ -45,6 +45,10 @@ def self.try_to_send_submission_to_free_server(submission, notify_url) rescue SandboxUnavailableError => e Rails.logger.warn e # ignore + rescue InternalSandboxError => e + Rails.logger.warn e + Rails.logger.warn "Encountered InternalSandboxError. Leaving to reprocessor daemon." + return true else Rails.logger.info "Submission #{submission.id} sent to remote sandbox at #{server.baseurl}" Rails.logger.debug "Notify url: #{notify_url}"