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

Author:

Instance Method Summary collapse

Instance Method Details

#reflect(reflection, *args) ⇒ void

This method returns an undefined value.

Reflects on specific event

Parameters:

  • reflection (Symbol)

    the reflected event

  • args (Array)

    arguments to provide to reflector



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