dawarich/app/jobs/import/google_takeout_job.rb
2025-06-09 13:39:25 +02:00

13 lines
351 B
Ruby

# frozen_string_literal: true
class Import::GoogleTakeoutJob < ApplicationJob
queue_as :imports
sidekiq_options retry: false
def perform(import_id, locations, current_index)
locations_batch = Oj.load(locations)
import = Import.find(import_id)
GoogleMaps::RecordsImporter.new(import, current_index).call(locations_batch)
end
end