Skip to content

Commit

Permalink
Add sleep_delay description
Browse files Browse the repository at this point in the history
  • Loading branch information
itskingori committed Nov 15, 2015
1 parent 3b31ffd commit 1d667e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -427,6 +427,8 @@ By default all jobs will be queued without a named queue. A default named queue

It is possible to disable delayed jobs for testing purposes. Set `Delayed::Worker.delay_jobs = false` to execute all jobs realtime.

If no jobs are found, the worker sleeps for the amount of time specified by the sleep delay option. Set `Delayed::Worker.sleep_delay = 60` for a 60 second sleep time.

Or `Delayed::Worker.delay_jobs` can be a Proc that decides whether to execute jobs inline on a per-job basis:

```ruby
Expand Down

0 comments on commit 1d667e6

Please sign in to comment.