Persist metrics for container usage (execution time and waiting time) to Testrun table

This commit is contained in:
Sebastian Serth
2020-03-26 14:03:37 +01:00
parent 00fc96542b
commit 48d06b6dbe
4 changed files with 37 additions and 4 deletions

View File

@ -19,7 +19,15 @@ module SubmissionScoring
end
end
end
Testrun.new(submission: submission, cause: 'assess', file: file, passed: passed, output: testrun_output).save
Testrun.new(
submission: submission,
cause: 'assess',
file: file,
passed: passed,
output: testrun_output,
container_execution_time: output[:container_execution_time],
waiting_for_container_time: output[:waiting_for_container_time]
).save
output.merge!(assessment)
output.merge!(filename: file.name_with_extension, message: feedback_message(file, output[:score]), weight: file.weight)
end