Class: BridgeCache::Jobs::ImportStart
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- BridgeCache::Jobs::ImportStart
- Defined in:
- app/lib/bridge_cache/jobs/import_start.rb
Instance Method Summary collapse
Instance Method Details
#perform(account_settings, chain = [], retries = 0) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'app/lib/bridge_cache/jobs/import_start.rb', line 6 def perform(account_settings, chain = [], retries = 0) data = BridgeBlueprint::RemoteData.new(account_settings[:url], account_settings[:api_key], account_settings[:api_secret], account_settings[:models]) data.start_data_report BridgeCache::Jobs::ImportCheck .set(queue: queue_name, wait: 30.seconds) .perform_later(account_settings, 0, chain, retries) end |