Skip to content

Commit

Permalink
Remove Whenever and add Clockwork
Browse files Browse the repository at this point in the history
  • Loading branch information
mrship authored and danmaclean committed May 5, 2013
1 parent 6ea40f9 commit ccdf82b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -19,7 +19,7 @@ gem 'foreigner'
gem 'paper_trail', '~> 2'

gem 'sidekiq'
gem 'whenever', require: false
gem 'clockwork'

group :assets do
gem 'sass-rails', '~> 3.2.3'
Expand All @@ -28,7 +28,7 @@ group :assets do
end

group :test do
gem "cucumber-rails", require: false
gem "cucumber-rails", :require => false
gem "database_cleaner"
gem "rspec-rails"
gem 'email_spec'
Expand Down
8 changes: 3 additions & 5 deletions Gemfile.lock
Expand Up @@ -48,7 +48,8 @@ GEM
timers (>= 1.0.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
chronic (0.9.1)
clockwork (0.5.0)
tzinfo (~> 0.3.35)
coderay (1.0.9)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
Expand Down Expand Up @@ -245,9 +246,6 @@ GEM
unicorn
warden (1.2.1)
rack (>= 1.0)
whenever (0.8.2)
activesupport (>= 2.3.4)
chronic (>= 0.6.3)
xpath (2.0.0)
nokogiri (~> 1.3)

Expand All @@ -258,6 +256,7 @@ DEPENDENCIES
bio
bio-samtools
bio-svgenes
clockwork
coffee-rails (~> 3.2.1)
cucumber-rails
database_cleaner
Expand Down Expand Up @@ -285,4 +284,3 @@ DEPENDENCIES
twitter-bootstrap-rails
uglifier (>= 1.0.3)
unicorn-rails
whenever
1 change: 1 addition & 0 deletions Procfile
@@ -1,2 +1,3 @@
web: bundle exec rails server -p $PORT
worker: bundle exec sidekiq
clock: bundle exec clockwork 'lib/clock.rb'
3 changes: 0 additions & 3 deletions config/schedule.rb

This file was deleted.

10 changes: 10 additions & 0 deletions lib/clock.rb
@@ -0,0 +1,10 @@
require_relative "../config/boot"
require_relative "../config/environment"

require 'clockwork'

module Clockwork
every(2.minutes, 'DataRepositoryWorker') do
DataRepositoryWorker.perform_async
end
end

0 comments on commit ccdf82b

Please sign in to comment.