module SimpleScheduler
Module for scheduling jobs at specific times using Sidekiq.
Constants
- VERSION
Public Class Methods
expired_task(&block)
click to toggle source
Used by a Rails initializer to handle expired tasks.
SimpleScheduler.expired_task do |exception| ExceptionNotifier.notify_exception( exception, data: { task: exception.task.name, scheduled: exception.scheduled_time, actual: exception.run_time } ) end
# File lib/simple_scheduler.rb, line 23 def self.expired_task(&block) expired_task_blocks << block end
expired_task_blocks()
click to toggle source
Blocks that should be called when a task doesn't run because it has expired. @return [Array]
# File lib/simple_scheduler.rb, line 29 def self.expired_task_blocks @expired_task_blocks ||= [] end