Sha256: dd62ab1ac399107a6f5cb38e057a7124c0afb244af1cbfaff445c0a8eeea191e
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 Bytes
Contents
# frozen_string_literal: true require 'sidekiq' require 'sidekiq-unique-jobs' module GlobalRegistry #:nodoc: module Bindings #:nodoc: module Workers #:nodoc: class PushGrEntityWorker include Sidekiq::Worker sidekiq_options unique: :until_and_while_executing def perform(model_class, id) model_class.find(id).send(:push_entity_to_global_registry) rescue ActiveRecord::RecordNotFound # rubocop:disable Lint/HandleExceptions # If the record was deleted after the job was created, swallow it end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems