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
22 23 24 25 26 27 28 |
# File 'lib/worker_glass/reentrancy.rb', line 22 def perform(*args) super rescue StandardError => e WorkerGlass.logger.fatal(e) after_failure(*args) raise e end |