Class: GlobalRegistry::Bindings::Workers::PushEntityWorker

Inherits:
GlobalRegistry::Bindings::Worker show all
Includes:
Entity::EntityTypeMethods, Entity::PushEntityMethods
Defined in:
lib/global_registry_bindings/workers/push_entity_worker.rb

Instance Attribute Summary

Attributes inherited from GlobalRegistry::Bindings::Worker

#model

Instance Method Summary collapse

Methods included from Entity::PushEntityMethods

#create_dependent_entity_in_global_registry, #create_entity_in_global_registry, #dig_global_registry_id_from_entity, #ensure_parent_entity_has_global_registry_id!, #entity_fingerprint, #fingerprints_match?, #push_entity_to_global_registry, #update_entity_in_global_registry, #update_fingerprint

Methods included from Entity::EntityTypeMethods

#push_entity_type_to_global_registry

Methods inherited from GlobalRegistry::Bindings::Worker

#initialize, perform_async, perform_async_real

Constructor Details

This class inherits a constructor from GlobalRegistry::Bindings::Worker

Instance Method Details

#perform(model_class, id) ⇒ Object



15
16
17
18
19
20
# File 'lib/global_registry_bindings/workers/push_entity_worker.rb', line 15

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