From 2d95a737f6a972ac41bf01c960c74d795a37da46 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 4 Oct 2022 15:26:53 +0200 Subject: [PATCH] Assume failed code execution if no status was received --- app/controllers/submissions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/submissions_controller.rb b/app/controllers/submissions_controller.rb index d57ff6a3..229aec47 100644 --- a/app/controllers/submissions_controller.rb +++ b/app/controllers/submissions_controller.rb @@ -365,7 +365,7 @@ class SubmissionsController < ApplicationController cause: cause, submission: @submission, exit_code: @testrun[:exit_code], # might be nil, e.g., when the run did not finish - status: @testrun[:status], + status: @testrun[:status] || :failed, output: @testrun[:output].presence, # TODO: Remove duplicated saving of the output after creating TestrunMessages container_execution_time: @testrun[:container_execution_time], waiting_for_container_time: @testrun[:waiting_for_container_time]