Sha256: f4ec2b0139b97e681a6de5705ab75d01d7c9d503814a0897766ba2692e1636b4
Contents?: true
Size: 572 Bytes
Versions: 54
Compression:
Stored size: 572 Bytes
Contents
# frozen_string_literal: true module Spotlight # Extension point for downstream applications to override to # check if a delayed job still needs to run class ValidityChecker # Return a validity token # @param [ActiveJob::Base] # @return [Object] any serializable object def mint(_job); end # Check if the token is still valid for the model # @param [ActiveJob::Base] # @param [Object] the serializable token minted by #mint # @return [boolean] def check(_job, validity_token: nil) validity_token || true end end end
Version data entries
54 entries across 54 versions & 1 rubygems