cartodb/lib/resque/geocoder_jobs.rb

12 lines
283 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
require_relative './base_job'
module Resque
class GeocoderJobs < BaseJob
@queue = :geocodings
def self.perform(options = {})
geocoding = run_action(options, @queue, lambda { |options| geocoding = Geocoding[options.symbolize_keys[:job_id]].run! })
end
end
end