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

17 lines
402 B
Ruby

require_relative './base_job'
require_relative '../../app/models/synchronization/member'
module Resque
class SynchronizationJobs < BaseJob
@queue = :synchronizations
def self.perform(options = {})
run_action(options, @queue, lambda { |options|
CartoDB::Synchronization::Member.new(
id: options.symbolize_keys[:job_id]
).fetch.run
})
end
end
end