Sha256: 936fd1ac310455687e3365840c95a30125b3fb91214b17e1c3a1691a46c708aa

Contents?: true

Size: 310 Bytes

Versions: 62

Compression:

Stored size: 310 Bytes

Contents

module Workarea
  class CleanProductRecommendations
    include Sidekiq::Worker
    include Sidekiq::CallbacksWorker

    sidekiq_options enqueue_on: { Catalog::Product => :destroy }

    def perform(id)
      predictor = Recommendation::ProductPredictor.new
      predictor.delete_item!(id)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 app/workers/workarea/clean_product_recommendations.rb
workarea-core-3.4.12 app/workers/workarea/clean_product_recommendations.rb