class GlobalRegistry::Bindings::Workers::PullMdmIdWorker

Public Instance Methods

perform(model_class, id) click to toggle source
# File lib/global_registry_bindings/workers/pull_mdm_id_worker.rb, line 25
def perform(model_class, id)
  super model_class, id
  pull_mdm_id_from_global_registry
rescue ActiveRecord::RecordNotFound
  # If the record was deleted after the job was created, swallow it
  return
rescue RestClient::ResourceNotFound
  Rails.logger.info "GR entity for #{self.class.name} #{id} does not exist; will _not_ retry"
end