Class: AttentiveSidekiq::UpdaterObserver
- Inherits:
-
Object
- Object
- AttentiveSidekiq::UpdaterObserver
- Defined in:
- lib/attentive_sidekiq/updater_observer.rb
Instance Method Summary collapse
Instance Method Details
#update(time, result, ex) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/attentive_sidekiq/updater_observer.rb', line 3 def update time, result, ex if result AttentiveSidekiq.logger.info("#{time} [AttentiveSidekiq] Finished updating with result #{result}") elsif ex.is_a?(Concurrent::TimeoutError) AttentiveSidekiq.logger.error("#{time} [AttentiveSidekiq] Execution timed out") else AttentiveSidekiq.logger.error("#{time } [AttentiveSidekiq] Execution failed with error #{ex}\n") end end |