REFACTOR: extract scheduler to the mini_scheduler gem

This commit is contained in:
Neil Lalonde
2018-07-31 17:12:55 -04:00
parent fd29ecb91a
commit 4ad7ce70ce
16 changed files with 28 additions and 1106 deletions

View File

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