Class: Dis::Jobs::Delete

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

Overview

Dis Delete Job

Handles delayed deletion of objects from all delayed layers. Retries up to 10 times on failure.

Examples:

Dis::Jobs::Delete.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



20
21
22
# File 'lib/dis/jobs/delete.rb', line 20

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