Increase file size limit
This commit is contained in:
parent
000e73c56b
commit
821e29399e
@ -32,7 +32,7 @@ class E621ThumbnailJob < ApplicationJob
|
|||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
code = Requests::Pastebin.default.create(title: "E621 Thumbnail Generation Error (#{entry.stripped_md5})", content: "#{e}\n#{e.backtrace&.join("\n") || ''}")
|
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)
|
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)
|
raise(e)
|
||||||
ensure
|
ensure
|
||||||
[infile, outfile, palettefile, cutfile].each do |file|
|
[infile, outfile, palettefile, cutfile].each do |file|
|
||||||
|
@ -5,7 +5,7 @@ class FileDownload
|
|||||||
class Error < StandardError; end
|
class Error < StandardError; end
|
||||||
|
|
||||||
RETRIABLE_ERRORS = [Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EIO, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, Timeout::Error, IOError].freeze
|
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
|
attr_reader :url
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user