Module: Resque::Future
- Defined in:
- lib/resque/future.rb
Overview
This is the module that should be included in your worker to make it’s jobs FutureJob instances.
Instance Method Summary collapse
-
#around_perform_future(uuid, *args, &block) ⇒ Object
Wraps the perform method, saving the return statement for the future job.
Instance Method Details
#around_perform_future(uuid, *args, &block) ⇒ Object
Wraps the perform method, saving the return statement for the future job.
6 7 8 9 |
# File 'lib/resque/future.rb', line 6 def around_perform_future(uuid, *args, &block) job = ResqueFuture::FutureJob.get(@queue, uuid) job.result = yield end |