Increase file size limit
This commit is contained in:
parent
000e73c56b
commit
821e29399e
|
@ -32,7 +32,7 @@ class E621ThumbnailJob < ApplicationJob
|
|||
rescue StandardError => e
|
||||
code = Requests::Pastebin.default.create(title: "E621 Thumbnail Generation Error (#{entry.stripped_md5})", content: "#{e}\n#{e.backtrace&.join("\n") || ''}")
|
||||
entry.update!(status: "error", error_code: code)
|
||||
execute_webhook(entry, title: "Thumbnail Generation Errored (#{entry.filetype})", body: "Backtrace: https://passtebin.com/#{code}", error: true)
|
||||
execute_webhook(entry, title: "Thumbnail Generation Errored (#{entry.filetype})", body: "Backtrace: https://pastebin.com/#{code}", error: true)
|
||||
raise(e)
|
||||
ensure
|
||||
[infile, outfile, palettefile, cutfile].each do |file|
|
||||
|
|
|
@ -5,7 +5,7 @@ class FileDownload
|
|||
class Error < StandardError; end
|
||||
|
||||
RETRIABLE_ERRORS = [Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EIO, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Timeout::Error, IOError].freeze
|
||||
MAX_SIZE = 50.megabytes
|
||||
MAX_SIZE = 100.megabytes
|
||||
|
||||
attr_reader :url
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user