DEV: Upgrade Sidekiq to 6.5 (#17142)

This commit is contained in:
Alan Guo Xiang Tan
2022-06-21 09:23:36 +08:00
committed by GitHub
parent 54a518b21d
commit 3562c598ef
4 changed files with 10 additions and 11 deletions

View File

@ -9,11 +9,6 @@ module Discourse
DB_POST_MIGRATE_PATH ||= "db/post_migrate"
REQUESTED_HOSTNAME ||= "REQUESTED_HOSTNAME"
require 'sidekiq/exception_handler'
class SidekiqExceptionHandler
extend Sidekiq::ExceptionHandler
end
class Utils
URI_REGEXP ||= URI.regexp(%w{http https})
@ -168,7 +163,7 @@ module Discourse
return if ex.class == Jobs::HandledExceptionWrapper
context ||= {}
parent_logger ||= SidekiqExceptionHandler
parent_logger ||= Sidekiq
cm = RailsMultisite::ConnectionManagement
parent_logger.handle_exception(ex, {