File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -153,6 +153,8 @@ def redis_id
153153 DEFAULT_HEARTBEAT_INTERVAL = 60
154154 DEFAULT_PRUNE_INTERVAL = DEFAULT_HEARTBEAT_INTERVAL * 5
155155
156+ # Defines how often a Resque worker updates the heartbeat key. Must be less
157+ # than the prune interval.
156158 attr_writer :heartbeat_interval
157159 def heartbeat_interval
158160 if defined? @heartbeat_interval
@@ -162,6 +164,7 @@ def heartbeat_interval
162164 end
163165 end
164166
167+ # Defines how often Resque checks for dead workers.
165168 attr_writer :prune_interval
166169 def prune_interval
167170 if defined? @prune_interval
@@ -171,6 +174,10 @@ def prune_interval
171174 end
172175 end
173176
177+ # By default, jobs are pushed to the back of the queue and popped from
178+ # the front, resulting in "first in, first out" (FIFO) execution order.
179+ # Set to true to push jobs to the front of the queue instead, resulting
180+ # in "last in, first out" (LIFO) execution order.
174181 attr_writer :enqueue_front
175182 def enqueue_front
176183 if defined? @enqueue_front
You can’t perform that action at this time.
0 commit comments