Skip to content

Commit

Permalink
adds command-line option to set read-ahead value
Browse files Browse the repository at this point in the history
  • Loading branch information
dcuddeback committed Jan 27, 2012
1 parent 666f442 commit 8a9d363
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/delayed/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ def initialize(args)
opts.on('--sleep-delay N', "Amount of time to sleep when no jobs are found") do |n|
@options[:sleep_delay] = n
end
opts.on('--read-ahead N', "Number of jobs from the queue to consider") do |n|
@options[:read_ahead] = n
end
opts.on('-p', '--prefix NAME', "String to be prefixed to worker process names") do |prefix|
@options[:prefix] = prefix
end
Expand Down

0 comments on commit 8a9d363

Please sign in to comment.