Skip to content

Commit

Permalink
Mentioned and explained the INTERVAL option in the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymon-jez authored and defunkt committed Oct 21, 2011
1 parent 3080af3 commit 50fee9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.markdown
Expand Up @@ -210,7 +210,7 @@ loop do
if job = reserve
job.process
else
sleep 5
sleep 5 # Polling frequency = 5
end
end
shutdown
Expand Down Expand Up @@ -275,6 +275,13 @@ worker is started.
$ PIDFILE=./resque.pid BACKGROUND=yes QUEUE=file_serve \
rake environment resque:work

### Polling frequency

You can pass an INTERVAL option which is a float representing the polling frequency.
The default is 5 seconds, but for a semi-active app you may want to use a smaller value.

$ INTERVAL=0.1 QUEUE=file_serve rake environment resque:work

### Priorities and Queue Lists

Resque doesn't support numeric priorities but instead uses the order
Expand Down

0 comments on commit 50fee9b

Please sign in to comment.