mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
13 lines
320 B
Ruby
13 lines
320 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AreaVisitsCalculationSchedulingJob < ApplicationJob
|
|
queue_as :visit_suggesting
|
|
sidekiq_options retry: false
|
|
|
|
def perform
|
|
User.find_each do |user|
|
|
AreaVisitsCalculatingJob.perform_later(user.id)
|
|
PlaceVisitsCalculatingJob.perform_later(user.id)
|
|
end
|
|
end
|
|
end
|