Skip to content

Commit

Permalink
0.0.5, configure dj to only attempt 3 times
Browse files Browse the repository at this point in the history
  • Loading branch information
lostboy committed Oct 1, 2010
1 parent 504b355 commit bdfdb8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/workless/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module Delayed
class Railtie < Rails::Railtie
initializer :after_initialize do
puts "attempts #{Delayed::Worker.max_attempts}"
Delayed::Worker.max_attempts = 3
Delayed::Backend::ActiveRecord::Job.send(:include, Delayed::Workless::Scaler) if defined?(Delayed::Backend::ActiveRecord::Job)
end
end
Expand Down
5 changes: 3 additions & 2 deletions workless.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{workless}
s.version = "0.0.3"
s.version = "0.0.4"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["lostboy"]
s.date = %q{2010-09-30}
s.date = %q{2010-10-01}
s.description = %q{Extension to Delayed Job to enable workers to scale up when needed}
s.email = %q{paul.crabtree@gmail.com}
s.extra_rdoc_files = [
Expand All @@ -33,6 +33,7 @@ Gem::Specification.new do |s|
"lib/workless/scalers/base.rb",
"lib/workless/scalers/heroku.rb",
"lib/workless/scalers/local.rb",
"lib/workless/scalers/null.rb",
"test/helper.rb",
"test/test_workless.rb",
"workless.gemspec"
Expand Down

0 comments on commit bdfdb8b

Please sign in to comment.