Module: SidekiqUniqueJobs::Reflectable
- Included in:
- Lock::BaseLock, Locksmith, Middleware::Client, OnConflict::Reschedule
- Defined in:
- lib/sidekiq_unique_jobs/reflectable.rb
Overview
Module Reflectable provides a method to notify subscribers
Instance Method Summary collapse
-
#reflect(reflection, *args) ⇒ void
Reflects on specific event.
Instance Method Details
#reflect(reflection, *args) ⇒ void
This method returns an undefined value.
Reflects on specific event
18 19 20 21 22 23 24 |
# File 'lib/sidekiq_unique_jobs/reflectable.rb', line 18 def reflect(reflection, *args) SidekiqUniqueJobs.reflections.dispatch(reflection, *args) nil rescue UniqueJobsError => ex SidekiqUniqueJobs.logger.error(ex) nil end |