Sha256: 8d03c1fe65e7776f7c2e02cbf4aba254304070ee6a1f8e3f65fe7043a5b097f6

Contents?: true

Size: 513 Bytes

Versions: 8

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

module GlobalRegistry #:nodoc:
  module Bindings #:nodoc:
    module Workers #:nodoc:
      class DeleteEntityWorker < ::GlobalRegistry::Bindings::Worker
        sidekiq_options unique: :until_executed

        def perform(global_registry_id)
          GlobalRegistry::Entity.delete(global_registry_id)
        rescue RestClient::ResourceNotFound # rubocop:disable Lint/HandleExceptions
          # If the record doesn't exist, we don't care
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
global-registry-bindings-0.1.7 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.6 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.5 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.4 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.3 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.2 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.1 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.0 lib/global_registry_bindings/workers/delete_entity_worker.rb