Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pr/669'
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Sep 24, 2014
2 parents bb3d3a8 + 110f0e2 commit 56e8e71
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 56e8e71

Please sign in to comment.