mirror of
https://github.com/plashchynski/crono.git
synced 2026-07-10 14:52:49 +02:00
Add debug info
This commit is contained in:
+2
-1
@@ -6,7 +6,6 @@ module Crono
|
|||||||
|
|
||||||
def run
|
def run
|
||||||
load_rails
|
load_rails
|
||||||
require File.expand_path("config/cronotab.rb")
|
|
||||||
print_banner
|
print_banner
|
||||||
start_working_loop
|
start_working_loop
|
||||||
end
|
end
|
||||||
@@ -21,9 +20,11 @@ module Crono
|
|||||||
require 'rails'
|
require 'rails'
|
||||||
require File.expand_path("config/environment.rb")
|
require File.expand_path("config/environment.rb")
|
||||||
::Rails.application.eager_load!
|
::Rails.application.eager_load!
|
||||||
|
require File.expand_path("config/cronotab.rb")
|
||||||
end
|
end
|
||||||
|
|
||||||
def run_job(klass)
|
def run_job(klass)
|
||||||
|
puts "Perform #{klass}"
|
||||||
Thread.new { klass.new.perform }
|
Thread.new { klass.new.perform }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user