diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-13 18:08:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-13 18:08:53 +0300 |
commit | 16515bdfcb89ccb28e6eb81020d1646dfa7c6fa4 (patch) | |
tree | ca7676376780d0c476b345f36827a61a4f6d84d3 /lib/gitlab/ci/trace.rb | |
parent | 6e91fbf77476011a7fd86ca3467aad6d7b110ff3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/ci/trace.rb')
-rw-r--r-- | lib/gitlab/ci/trace.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/gitlab/ci/trace.rb b/lib/gitlab/ci/trace.rb index 6fd32b3f1a0..0222ca021b7 100644 --- a/lib/gitlab/ci/trace.rb +++ b/lib/gitlab/ci/trace.rb @@ -80,11 +80,9 @@ module Gitlab job.trace_chunks.any? || current_path.present? || old_trace.present? end - def read(should_retry: true, &block) + def read(&block) read_stream(&block) - rescue Errno::ENOENT - raise unless should_retry - + rescue Errno::ENOENT, ChunkedIO::FailedToGetChunkError job.reset read_stream(&block) end |