Sha256: 385194d65458e8160407e869a691efa48329166e0f3b83fc4e43e809fdaa910d
Contents?: true
Size: 585 Bytes
Versions: 6
Compression:
Stored size: 585 Bytes
Contents
# frozen_string_literal: true require 'sidekiq' require 'sidekiq-unique-jobs' require 'global_registry' module GlobalRegistry #:nodoc: module Bindings #:nodoc: module Workers #:nodoc: class DeleteGrEntityWorker include Sidekiq::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
6 entries across 6 versions & 1 rubygems