Module: WorkerGlass::Reentrancy
- Defined in:
- lib/worker_glass/reentrancy.rb
Overview
Note:
If will reraise a given error - it does not silence them
This module provides a reentrancy functionality for background processing engine
Instance Method Summary collapse
-
#perform(*args) ⇒ Object
Executes a business logic with additional timeouts.
Instance Method Details
#perform(*args) ⇒ Object
Executes a business logic with additional timeouts
20 21 22 23 24 25 26 |
# File 'lib/worker_glass/reentrancy.rb', line 20 def perform(*args) super rescue => exception WorkerGlass.logger.fatal(exception) after_failure(*args) raise exception end |