Class: AllSensorsReadingJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/jobs/all_sensors_reading_job.rb

Instance Method Summary collapse

Instance Method Details

#performObject


4
5
6
7
8
9
10
# File 'lib/jobs/all_sensors_reading_job.rb', line 4

def perform
  Ekylibre::Tenant.switch_each do
    Rails.logger.info("Background sensors reading of #{Ekylibre::Tenant.current.to_s.red}...")
    SensorsReadingJob.perform_later
    Rails.logger.info("Background sensors reading of #{Ekylibre::Tenant.current.to_s.red}...")
  end
end