Class: AllSensorsReadingJob

Inherits:
ScheduleJob
  • Object
show all
Defined in:
app/jobs/all_sensors_reading_job.rb

Instance Method Summary collapse

Methods inherited from ScheduleJob

#perform, #perform_on_each_tenant

Instance Method Details

#perform_on_tenantObject


4
5
6
7
8
# File 'app/jobs/all_sensors_reading_job.rb', line 4

def perform_on_tenant
  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