Browse Source

Make BackupService resilient to read timeouts

If an attachment read times out, assume that the resources is
inaccessible and continue the backup without it. This fixes #12280.
cybrespace-3.0
kɜ:ʳ cybredragon 2 years ago
parent
commit
4cd4a2664b
  1. 1
      app/services/backup_service.rb

1
app/services/backup_service.rb

@ -143,6 +143,7 @@ class BackupService < BaseService
end
end
rescue Errno::ENOENT
rescue Seahorse::Client::NetworkingError
Rails.logger.warn "Could not backup file #{filename}: file not found"
end
end
Loading…
Cancel
Save