dawarich/app/jobs/import/google_takeout_job.rb

14 lines
351 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Import::GoogleTakeoutJob < ApplicationJob
queue_as :imports
2025-06-09 07:39:25 -04:00
sidekiq_options retry: false
2025-01-21 13:14:36 -05:00
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