cartodb-4.42/lib/resque/synchronization_jobs.rb

17 lines
402 B
Ruby
Raw Normal View History

2024-04-06 13:25:13 +08:00
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