You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
402 B
17 lines
402 B
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
|