Merge pull request #42 from insales/increase_upload_delay

Пытаемся увеличить время задержки загрузки
This commit is contained in:
Nastia
2021-12-29 19:09:15 +03:00
committed by GitHub

View File

@@ -298,7 +298,7 @@ module Paperclip
instance.update_column(storage_field, false)
end
# кажется, без задержки картинки не успевают расползтись по nfs
queued_jobs.push -> { DelayedUpload.upload_later(self, storage, 1.second) }
queued_jobs.push -> { DelayedUpload.upload_later(self, storage, 10.seconds) }
end
end
queued_for_write.clear