lib/backburner/queue.rb in backburner-0.4.3 vs lib/backburner/queue.rb in backburner-0.4.4
- old
+ new
@@ -31,8 +31,22 @@
@queue_priority = pri
else # accessor
@queue_priority
end
end
+
+ # Returns or assigns queue respond_timeout for this job
+ #
+ # @example
+ # queue_respond_timeout 120
+ # @klass.queue_respond_timeout # => 120
+ #
+ def queue_respond_timeout(ttr=nil)
+ if ttr
+ @queue_respond_timeout = ttr
+ else # accessor
+ @queue_respond_timeout
+ end
+ end
end # ClassMethods
end # Queue
end # Backburner
\ No newline at end of file