JoobQ::ErrorContext
Inherits JSON::Serializable / Reference / Object
Comprehensive error context system for better error handling and debugging
Constructors
from_exception(job : Job, queue : BaseQueue, exception : Exception, worker_id : String, retry_count : Int32 = 0, additional_context : Hash(String, String) = {} of String => String) : ErrorContext
Sourcenew(job_id : String, queue_name : String, worker_id : String, job_type : String, error_type : String, error_message : String, error_class : String, backtrace : Array(String), retry_count : Int32 = 0, job_data : String | Nil = nil, error_cause : String | Nil = nil, system_context : Hash(String, String) = {} of String => String, occurred_at : String = Time.local.to_rfc3339)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceClass methods
build_system_context(queue : BaseQueue, additional : Hash(String, String)) : Hash(String, String)
Sourceclassify_error(exception : Exception) : String
Sourceextract_backtrace(exception : Exception) : Array(String)
Sourceget_hostname
Sourceget_memory_usage
SourceInstance methods
backtrace
Sourceerror_cause
Sourceerror_class
Sourceerror_message
Sourceerror_type
Sourcejob_data
Sourcejob_id
Sourcejob_type
Sourceoccurred_at
Sourcequeue_name
Sourceretry_count
Sourceretry_delay
Sourceseverity
Sourceshould_retry?
Sourcesystem_context
Sourceto_log_context
Sourceworker_id
Source