Sha256: bb9067aa4d76854b0fbd8d9bd2f94c9aed2f008c26473606ce65d96eb3525748
Contents?: true
Size: 554 Bytes
Versions: 2
Compression:
Stored size: 554 Bytes
Contents
# frozen_string_literal: true module Panoptic class FailedJob < SolidQueue::Job # TODO: use the `failed` scope available in SolidQueue next release default_scope { includes(:failed_execution).where.not(failed_execution: { id: nil }) } def enqueued_at Time.parse(arguments["enqueued_at"]) end def exception_class failed_execution.error["exception_class"] end def exception_message failed_execution.error["message"] end def stacktrace failed_execution.error["backtrace"] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
panoptic-0.5.0 | app/models/panoptic/failed_job.rb |
panoptic-0.4.2 | app/models/panoptic/failed_job.rb |