Sha256: 472e09ce946b1df5937dc9ee2d96145e540cc5e550d4a1ace14fd9fbfdc7c6e4
Contents?: true
Size: 715 Bytes
Versions: 1
Compression:
Stored size: 715 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', required: false class << self prepend ReadyToRunExtension end end def in_job_group? job_group_id.present? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
delayed_job_groups_plugin-0.6.2 | lib/delayed/job_groups/job_extensions.rb |