List Files: Catch more Runner::Errors

This commit is contained in:
Sebastian Serth
2022-11-14 13:51:04 +01:00
parent fa807eb7aa
commit d50e6d30e9
3 changed files with 10 additions and 2 deletions

View File

@ -146,7 +146,12 @@ class Runner::Connection
@strategy.destroy_at_management
@error = Runner::Error::ExecutionTimeout.new('Execution exceeded its time limit')
when :terminated_by_codeocean, :terminated_by_management
@exit_callback.call @exit_code, @strategy.retrieve_files
files = begin
@strategy.retrieve_files
rescue Runner::Error::RunnerNotFound, Runner::Error::WorkspaceError
{'files' => []}
end
@exit_callback.call @exit_code, files
when :terminated_by_client, :error
@strategy.destroy_at_management
else # :established