Class: SendEventsNotificationsJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- SendEventsNotificationsJob
- Defined in:
- app/jobs/send_events_notifications_job.rb
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/jobs/send_events_notifications_job.rb', line 6 def perform Company.where(active: true).find_each do |company| SendEventsNotificationsForCompanyJob.perform_later(company_id: company.id) reference_success(company) rescue StandardError => e reference_error(company, e) raise e end end |