浏览代码

Fix backups stopping due to read timeouts (#12281)

* 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.

* Both errors on one line
master^2
chr v1.x 4 年前
committed by Eugen Rochko
父节点
当前提交
7e074610a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      app/services/backup_service.rb

+ 1
- 1
app/services/backup_service.rb 查看文件

@@ -165,7 +165,7 @@ class BackupService < BaseService
io.write(buffer)
end
end
rescue Errno::ENOENT
rescue Errno::ENOENT, Seahorse::Client::NetworkingError
Rails.logger.warn "Could not backup file #{filename}: file not found"
end
end

正在加载...
取消
保存