Module: SolidQueue::Job::Schedulable

Extended by:
ActiveSupport::Concern
Defined in:
app/models/solid_queue/job/schedulable.rb

Instance Method Summary collapse

Instance Method Details

#due?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'app/models/solid_queue/job/schedulable.rb', line 30

def due?
  scheduled_at.nil? || scheduled_at <= Time.current
end

#scheduled?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'app/models/solid_queue/job/schedulable.rb', line 34

def scheduled?
  scheduled_execution.present?
end