Clarify set_file and set_files in SubmissionsController

This commit is contained in:
Sebastian Serth
2021-10-17 16:19:56 +02:00
parent 21e0571838
commit 2377f8370c
2 changed files with 9 additions and 6 deletions

View File

@ -175,7 +175,7 @@ class Submission < ApplicationRecord
end
def run(file, &block)
run_command = command_for execution_environment.run_command, file
run_command = command_for execution_environment.run_command, file.name_with_extension
durations = {}
prepared_runner do |runner, waiting_duration|
durations[:execution_duration] = runner.attach_to_execution(run_command, &block)