Permalink
Browse files

Mentioned and explained the INTERVAL option in the README.

  • Loading branch information...
1 parent 3080af3 commit 50fee9b612bc2c33948074b49325f1613fee64a9 @szymon-jez szymon-jez committed with defunkt Oct 15, 2011
Showing with 8 additions and 1 deletion.
  1. +8 −1 README.markdown
View
@@ -210,7 +210,7 @@ loop do
if job = reserve
job.process
else
- sleep 5
+ sleep 5 # Polling frequency = 5
end
end
shutdown
@@ -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

0 comments on commit 50fee9b

Please sign in to comment.