Class: SolidQueue::Scheduler
- Inherits:
-
Processes::Base
- Object
- Processes::Base
- SolidQueue::Scheduler
- Includes:
- Processes::Runnable
- Defined in:
- lib/solid_queue/scheduler.rb
Defined Under Namespace
Classes: RecurringSchedule
Instance Attribute Summary collapse
-
#recurring_schedule ⇒ Object
Returns the value of attribute recurring_schedule.
Attributes inherited from Processes::Base
Instance Method Summary collapse
-
#initialize(recurring_tasks:, **options) ⇒ Scheduler
constructor
A new instance of Scheduler.
- #metadata ⇒ Object
Methods included from Processes::Runnable
Methods included from Processes::Supervised
Methods inherited from Processes::Base
Methods included from AppExecutor
#handle_thread_error, #wrap_in_app_executor
Methods included from Processes::Registrable
Methods included from Processes::Interruptible
Methods included from Processes::Procline
Constructor Details
#initialize(recurring_tasks:, **options) ⇒ Scheduler
Returns a new instance of Scheduler.
12 13 14 15 16 |
# File 'lib/solid_queue/scheduler.rb', line 12 def initialize(recurring_tasks:, **) @recurring_schedule = RecurringSchedule.new(recurring_tasks) super(**) end |
Instance Attribute Details
#recurring_schedule ⇒ Object
Returns the value of attribute recurring_schedule.
7 8 9 |
# File 'lib/solid_queue/scheduler.rb', line 7 def recurring_schedule @recurring_schedule end |
Instance Method Details
#metadata ⇒ Object
18 19 20 |
# File 'lib/solid_queue/scheduler.rb', line 18 def super.merge(recurring_schedule: recurring_schedule.task_keys.presence) end |