Sha256: cb63b7f523ca878cc1578e691655ae188bd1069c4e396613d211975121ba1285
Contents?: true
Size: 605 Bytes
Versions: 4
Compression:
Stored size: 605 Bytes
Contents
# frozen_string_literal: true require 'sidekiq' require 'sidekiq-unique-jobs' module GlobalRegistry #:nodoc: module Bindings #:nodoc: module Workers #:nodoc: class PushRelationshipWorker include Sidekiq::Worker sidekiq_options unique: :until_and_while_executing def perform(model_class, id) model_class.find(id).send(:push_relationship_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