Increase file size limit

This commit is contained in:
Donovan Daniels 2024-05-11 20:02:35 -05:00
parent 000e73c56b
commit 821e29399e
Signed by: Donovan_DMC
GPG Key ID: 907D29CBFD6157BA
2 changed files with 2 additions and 2 deletions

View File

@ -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|

View 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