Class: EnqueueMiddlewareInterface
- Inherits:
-
Object
- Object
- EnqueueMiddlewareInterface
- Defined in:
- lib/rage/configuration.rb
Overview
Note:
This class does not exist at runtime and is used for documentation purposes only. Do not inherit your middleware classes from it.
Instance Method Summary collapse
-
#call(task_class:, delay:, delay_until:, phase:, args:, kwargs:, context:) ⇒ Object
Called whenever a deferred task is enqueued.
Instance Method Details
#call(task_class:, delay:, delay_until:, phase:, args:, kwargs:, context:) ⇒ Object
Called whenever a deferred task is enqueued.
The middleware is expected to call yield to pass control to the next middleware in the stack. If the middleware does not call yield, the task will not be enqueued.
Rage automatically detects which parameters your middleware’s #call method accepts, and only passes those parameters. You can omit any of the described parameters in your implementation.
25 26 |
# File 'lib/rage/configuration.rb', line 25 def call(task_class:, delay:, delay_until:, phase:, args:, kwargs:, context:) end |