We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3080af3 commit 50fee9bCopy full SHA for 50fee9b
README.markdown
@@ -210,7 +210,7 @@ loop do
210
if job = reserve
211
job.process
212
else
213
- sleep 5
+ sleep 5 # Polling frequency = 5
214
end
215
216
shutdown
@@ -275,6 +275,13 @@ worker is started.
275
$ PIDFILE=./resque.pid BACKGROUND=yes QUEUE=file_serve \
276
rake environment resque:work
277
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
285
### Priorities and Queue Lists
286
287
Resque doesn't support numeric priorities but instead uses the order
0 commit comments