From 50fee9b612bc2c33948074b49325f1613fee64a9 Mon Sep 17 00:00:00 2001 From: Szymon Date: Sat, 15 Oct 2011 13:40:37 +0300 Subject: [PATCH] Mentioned and explained the INTERVAL option in the README. --- README.markdown | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index d871ac626..6cfdcb1fb 100644 --- a/README.markdown +++ b/README.markdown @@ -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