FEATURE: new scheduler

Removed sidetiq, introduced new scheduler

- add basic UI
- add schedule discover
- add scheduling in initializer
This commit is contained in:
Sam
2014-02-06 10:14:41 +11:00
parent 447816fe39
commit e1f293ad66
24 changed files with 193 additions and 52 deletions

View File

@ -61,6 +61,12 @@ describe Scheduler::Manager do
end
describe '#discover_schedules' do
it 'Discovers Testing::RandomJob' do
Scheduler::Manager.discover_schedules.should include(Testing::RandomJob)
end
end
describe '#next_run' do
it 'should be within the next 5 mins if it never ran' do