Skip to content

Commit 50fee9b

Browse files
szymon-jezdefunkt
authored andcommitted
Mentioned and explained the INTERVAL option in the README.
1 parent 3080af3 commit 50fee9b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.markdown

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ loop do
210210
if job = reserve
211211
job.process
212212
else
213-
sleep 5
213+
sleep 5 # Polling frequency = 5
214214
end
215215
end
216216
shutdown
@@ -275,6 +275,13 @@ worker is started.
275275
$ PIDFILE=./resque.pid BACKGROUND=yes QUEUE=file_serve \
276276
rake environment resque:work
277277

278+
### Polling frequency
279+
280+
You can pass an INTERVAL option which is a float representing the polling frequency.
281+
The default is 5 seconds, but for a semi-active app you may want to use a smaller value.
282+
283+
$ INTERVAL=0.1 QUEUE=file_serve rake environment resque:work
284+
278285
### Priorities and Queue Lists
279286

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

0 commit comments

Comments
 (0)