mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 16:41:17 +08:00
REFACTOR: extract scheduler to the mini_scheduler gem
This commit is contained in:
@ -43,6 +43,8 @@ module Discourse
|
||||
# other desired context.
|
||||
# See app/jobs/base.rb for the error_context function.
|
||||
def self.handle_job_exception(ex, context = {}, parent_logger = nil)
|
||||
return if ex.class == Jobs::HandledExceptionWrapper
|
||||
|
||||
context ||= {}
|
||||
parent_logger ||= SidekiqExceptionHandler
|
||||
|
||||
|
Reference in New Issue
Block a user