Sha256: 39f418501e08ec768e5945532fb482a714b96323d45fda57876e3d208d463e96

Contents?: true

Size: 556 Bytes

Versions: 12

Compression:

Stored size: 556 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)
          return unless 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

12 entries across 12 versions & 1 rubygems

Version Path
global-registry-bindings-0.6.2 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.6.1 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.6.0 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.5.0 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.4.0 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.3.3 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.3.2 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.3.1 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.3.0 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.2.0 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.9 lib/global_registry_bindings/workers/delete_entity_worker.rb
global-registry-bindings-0.1.8 lib/global_registry_bindings/workers/delete_entity_worker.rb