Skip to content

Commit

Permalink
Don't break up documentation on Delayed::Worker.delay_jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
albus522 committed Dec 28, 2015
1 parent 66abea1 commit 3bb9d4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,10 @@ The default behavior is to read 5 jobs from the queue when finding an available

By default all jobs will be queued without a named queue. A default named queue can be specified by using `Delayed::Worker.default_queue_name`.

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.

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

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 3bb9d4f

Please sign in to comment.