Sha256: f7431a565fc8cba798a20431ed74138be82937ebff18bd0779edea3ca02ebe04
Contents?: true
Size: 570 Bytes
Versions: 5
Compression:
Stored size: 570 Bytes
Contents
module Lambdakiq module Worker extend ActiveSupport::Concern included do class_attribute :lambdakiq_options_hash, instance_predicate: false self.lambdakiq_options_hash = Hash.new end class_methods do def lambdakiq_options(options = {}) self.lambdakiq_options_hash = options.symbolize_keys end end def lambdakiq? true end def lambdakiq_retry lambdakiq_options_hash[:retry] end def lambdakiq_async? !!lambdakiq_options_hash[:async] end end end
Version data entries
5 entries across 5 versions & 1 rubygems