Method: Resque#reserve
- Defined in:
- lib/resque.rb
#reserve(queue) ⇒ Object
This method will return a Resque::Job object or a non-true value depending on whether a job can be obtained. You should pass it the precise name of a queue: case matters.
This method is considered part of the stable API.
515 516 517 |
# File 'lib/resque.rb', line 515 def reserve(queue) Job.reserve(queue) end |