Skip to content

Commit

Permalink
Merge pull request #861 from itsmrwave/update_readme_sleep_time
Browse files Browse the repository at this point in the history
Add sleep_delay description
  • Loading branch information
albus522 committed Dec 28, 2015
2 parents 90922a7 + 1d667e6 commit 66abea1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,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 66abea1

Please sign in to comment.