Class: Dis::Jobs::Store

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
lib/dis/jobs/store.rb

Overview

Dis Store Job

Handles delayed storage of objects. Replicates content from immediate layers to all delayed layers. Retries up to 10 times on failure. Discarded if the source file no longer exists.

Examples:

Dis::Jobs::Store.perform_later("documents", key)

Instance Method Summary collapse

Instance Method Details

#perform(type, key) ⇒ void

This method returns an undefined value.

Parameters:

  • type (String)

    the type scope

  • key (String)

    the content hash



24
25
26
# File 'lib/dis/jobs/store.rb', line 24

def perform(type, key)
  Dis::Storage.delayed_store(type, key)
end