class <%= @job_class_name %> < ActiveJob::Base def perform(shop_domain:, webhook:) shop = Shop.find_by(shopify_domain: shop_domain) if shop.nil? logger.error("#{self.class} failed: cannot find shop with domain '#{shop_domain}'") raise ActiveRecord::RecordNotFound, "Shop Not Found" end shop.with_shopify_session do |session| end end end