Skip to content

Commit

Permalink
Added sleep_delay and read_ahead to options for rake tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Boutros committed Jun 18, 2014
1 parent 5b08ccd commit 110f0e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/delayed/tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
:queues => (ENV['QUEUES'] || ENV['QUEUE'] || '').split(','),
:quiet => false
}

@worker_options[:sleep_delay] = ENV['SLEEP_DELAY'].to_i if ENV['SLEEP_DELAY']
@worker_options[:read_ahead] = ENV['READ_AHEAD'].to_i if ENV['READ_AHEAD']
end

desc "Exit with error status if any jobs older than max_age seconds haven't been attempted yet."
Expand Down

0 comments on commit 110f0e2

Please sign in to comment.