demarches-normaliennes/app/jobs/update_stats_job.rb

8 lines
129 B
Ruby
Raw Normal View History

class UpdateStatsJob < CronJob
self.schedule_expression = "every 1 hour"
def perform(*args)
Stat.update_stats
end
end