Handle Faraday errors

This commit is contained in:
Felix Auringer
2021-06-14 10:53:46 +02:00
committed by Sebastian Serth
parent b48b45de9f
commit 1d3f0d7ad8
4 changed files with 27 additions and 1 deletions

View File

@ -197,7 +197,7 @@ class Submission < ApplicationRecord
runner = Runner.for(user, exercise)
copy_files_to runner
waiting_duration = Time.zone.now - request_time
yield(runner, waiting_duration) if block_given?
yield(runner, waiting_duration)
end
def command_for(template, file)