Assume failed code execution if no status was received

This commit is contained in:
Sebastian Serth
2022-10-04 15:26:53 +02:00
parent b3d8d82a3c
commit 2d95a737f6

View File

@ -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]