From c0b2a194b91484d5015607f92ee5988e534596ea Mon Sep 17 00:00:00 2001 From: Wedge Date: Mon, 3 Sep 2018 23:44:50 +0300 Subject: [PATCH] Add rescue to ignore fstore errors --- app/services/abf_worker_service/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/abf_worker_service/base.rb b/app/services/abf_worker_service/base.rb index abc01280e..0ee339132 100644 --- a/app/services/abf_worker_service/base.rb +++ b/app/services/abf_worker_service/base.rb @@ -68,7 +68,7 @@ module AbfWorkerService sha1 = nil TRIES.times do |i| sha1 = build_list.packages.pluck(:sha1).find do |sha1| - !FileStoreService::File.new(sha1: sha1).exist? + !FileStoreService::File.new(sha1: sha1).exist? rescue nil end break if !sha1.present? sleep 2**i