Sha256: 0ad783a4838a3c286430a73d03741e6b658b56fde953229f98cfa72fa716737c
Contents?: true
Size: 487 Bytes
Versions: 33
Compression:
Stored size: 487 Bytes
Contents
module Maestrano::Connector::Rails class AllSynchronizationsJob < ::ActiveJob::Base queue_as :default # Trigger synchronization of all active organizations def perform(name=nil, count=nil) Maestrano::Connector::Rails::Organization.where("oauth_provider IS NOT NULL AND oauth_token IS NOT NULL").each do |o| next unless [true, 1].include?(o.sync_enabled) Maestrano::Connector::Rails::SynchronizationJob.perform_later(o, {}) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems