Isomorfeus.operation_timer_tasks = {} Isomorfeus.operation_timer_tasks[:deferred] = Concurrent::TimerTask.new(execution_interval: Isomorfeus.production? ? 120 : 10) do |timer_task| Isomorfeus::Operation::RunTask.new(Isomorfeus::Operation::DeferredTask, timer_task: timer_task, interval: Isomorfeus.production? ? 120 : 10).run end Isomorfeus.operation_timer_tasks[:daily] = Concurrent::TimerTask.new(execution_interval: 86400) do |timer_task| Isomorfeus::Operation::RunTask.new(Isomorfeus::Operation::DailyTask, timer_task: timer_task, interval: 86400, recurring: true).run end Isomorfeus.operation_timer_tasks.each do |k, t| t.execute end