cartodb-4.42/lib/resque/exporter_jobs.rb

15 lines
381 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
require_relative './base_job'
module Resque
class ExporterJobs < BaseJob
@queue = :exports
def self.perform(options = {})
run_action(options, @queue, lambda do |options|
download_path = options['download_path']
Carto::VisualizationExport.find(options.symbolize_keys[:job_id]).run_export!(download_path: download_path)
end)
end
end
end