Sha256: 1f98e1390fa12a1af23d1edd8298b94ae7bbb2ef2e4eaa34adf2b13486cfba6a
Contents?: true
Size: 857 Bytes
Versions: 4
Compression:
Stored size: 857 Bytes
Contents
# frozen_string_literal: true require "global_registry_bindings/worker" require "global_registry_bindings/entity/entity_type_methods" require "global_registry_bindings/entity/push_entity_methods" module GlobalRegistry # :nodoc: module Bindings # :nodoc: module Workers # :nodoc: class PushEntityWorker < GlobalRegistry::Bindings::Worker include GlobalRegistry::Bindings::Entity::EntityTypeMethods include GlobalRegistry::Bindings::Entity::PushEntityMethods sidekiq_options unique: :until_and_while_executing def perform(model_class, id) super model_class, id 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