Sha256: 2e5692348e355cf0c13823faf43530f86ad9817b549fb50ebd8cdf1bf95af8bd
Contents?: true
Size: 419 Bytes
Versions: 28
Compression:
Stored size: 419 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
28 entries across 28 versions & 1 rubygems