Sha256: 3548c8277c3feff44f7dd1c414b2a8f94a6ef641ead931b9a32ca70a1f7737bf
Contents?: true
Size: 420 Bytes
Versions: 65
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module GoodJob module ActiveJobExtensions module InterruptErrors extend ActiveSupport::Concern included do around_perform do |_job, block| raise InterruptError, "Interrupted after starting perform at '#{CurrentThread.execution_interrupted}'" if CurrentThread.execution_interrupted.present? block.call end end end end end
Version data entries
65 entries across 65 versions & 1 rubygems