Sha256: d2b876c765917cd4f9e820d44b03bfde82fd78a163c9c1310f7c738c8f3cf7de

Contents?: true

Size: 560 Bytes

Versions: 8

Compression:

Stored size: 560 Bytes

Contents

module BridgeCache::Jobs
  class ImportStart < ActiveJob::Base
    queue_as :default

    def perform(bridge_base_url, bridge_api_key, bridge_api_secret, models, chain = [])
      data = BridgeBlueprint::RemoteData.new(bridge_base_url, bridge_api_key, bridge_api_secret)
      data.start_data_report
      BridgeCache::Jobs::ImportCheck
        .set(queue: self.queue_name, wait: 30.seconds)
        .perform_later(
          bridge_base_url,
          bridge_api_key,
          bridge_api_secret,
          models,
          chain
        )
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
bridge_cache-0.0.14 app/lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.13 app/lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.12 app/lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.11 app/lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.9 app/lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.8 lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.7 lib/bridge_cache/jobs/import_start.rb
bridge_cache-0.0.6 lib/bridge_cache/jobs/import_start.rb