cartodb-4.29/lib/resque/importer_jobs.rb
2020-06-15 10:58:47 +08:00

11 lines
263 B
Ruby

require_relative './base_job'
module Resque
class ImporterJobs < BaseJob
@queue = :imports
def self.perform(options = {})
run_action(options, @queue, lambda { |options| DataImport[options.symbolize_keys[:job_id]].run_import! })
end
end
end