Class: BridgeCache::Jobs::ImportStart

Inherits:
ActiveJob::Base
  • Object
show all
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(, chain = [], retries = 0)
  data = BridgeBlueprint::RemoteData.new([:url], [:api_key],
                                         [:api_secret], [:models])
  data.start_data_report

  BridgeCache::Jobs::ImportCheck
    .set(queue: queue_name, wait: 30.seconds)
    .perform_later(, 0, chain, retries)
end