module
JoobQ::ErrorHandler
Overview
Error classification and handling utilities
Defined in:
joobq/error_context.crClass Method Summary
- .handle_job_error(job : Job, queue : BaseQueue, exception : Exception, worker_id : String, retry_count : Int32 = 0, additional_context : Hash(String, String) = {} of String => String) : ErrorContext
- .log_error(error_context : ErrorContext) : Nil
- .schedule_retry(job : Job, queue : BaseQueue, error_context : ErrorContext) : Nil
- .send_to_dead_letter(job : Job, queue : BaseQueue, error_context : ErrorContext) : Job
- .update_job_with_error(job : Job, error_context : ErrorContext) : Job
Class Method Detail
def self.handle_job_error(job : Job, queue : BaseQueue, exception : Exception, worker_id : String, retry_count : Int32 = 0, additional_context : Hash(String, String) = {} of String => String) : ErrorContext
#