Sha256: be269c63093e6aae6223a604dc9a81acef4c011bceb202ab22f3fb00e398ce47
Contents?: true
Size: 698 Bytes
Versions: 5
Compression:
Stored size: 698 Bytes
Contents
# frozen_string_literal: true module Delayed module JobGroups module JobExtensions extend ActiveSupport::Concern module ReadyToRunExtension def ready_to_run(worker_name, max_run_time) super(worker_name, max_run_time).where(blocked: false) end end included do if Delayed::JobGroups::Compatibility.mass_assignment_security_enabled? attr_accessible :job_group_id, :blocked end belongs_to :job_group, class_name: 'Delayed::JobGroups::JobGroup' class << self prepend ReadyToRunExtension end end def in_job_group? job_group_id.present? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems