8567: Adjust job container resolve test now that images are filtered based on
[arvados.git] / services / api / lib / sweep_trashed_collections.rb
index ab2d27af31b84a2ddb3ad1ed0528eda61cc5632a..01b63fdb824f70a4fa24fe5791789be00c603922 100644 (file)
@@ -23,8 +23,11 @@ module SweepTrashedCollections
     end
     if need
       Thread.new do
+        Thread.current.abort_on_exception = false
         begin
           sweep_now
+        rescue => e
+          Rails.logger.error "#{e.class}: #{e}\n#{e.backtrace.join("\n\t")}"
         ensure
           ActiveRecord::Base.connection.close
         end