Skip to content
Browse files

remove log_queries option. It will be replaced with better logger set…

…tings
  • Loading branch information...
1 parent 8e09ec0 commit 626b5e21bbf92cafa765c1edebc0b1235e9554e3 @bkeepers bkeepers committed Nov 12, 2010
Showing with 2 additions and 4 deletions.
  1. +0 −1 README.textile
  2. +2 −3 lib/delayed/worker.rb
View
1 README.textile
@@ -223,7 +223,6 @@ Delayed::Worker.destroy_failed_jobs = false
Delayed::Worker.sleep_delay = 60
Delayed::Worker.max_attempts = 3
Delayed::Worker.max_run_time = 5.minutes
-Delayed::Worker.log_queries = false # if you don't want the sql query to show up in your log every 5 secs
</pre>
h3. Cleaning up
View
5 lib/delayed/worker.rb
@@ -6,13 +6,12 @@
module Delayed
class Worker
- cattr_accessor :min_priority, :max_priority, :max_attempts, :max_run_time, :default_priority, :sleep_delay, :logger, :log_queries
+ cattr_accessor :min_priority, :max_priority, :max_attempts, :max_run_time, :default_priority, :sleep_delay, :logger
self.sleep_delay = 5
self.max_attempts = 25
self.max_run_time = 4.hours
self.default_priority = 0
- self.log_queries = true
-
+
# By default failed jobs are destroyed after too many attempts. If you want to keep them around
# (perhaps to inspect the reason for the failure), set this to false.
cattr_accessor :destroy_failed_jobs

0 comments on commit 626b5e2

Please sign in to comment.
Something went wrong with that request. Please try again.