Skip to content

Commit

Permalink
feat product_sync_job.rb: #7
Browse files Browse the repository at this point in the history
add perform
  • Loading branch information
Pauloparakleto committed Dec 22, 2023
1 parent c0f1c0c commit 23b725d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/jobs/product_sync_job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# frozen_string_literal: true

class ProductSyncJob < ApplicationJob
queue_as :default
rescue_from(StandardError) do |exception|
Sentry.capture_message(exception)
end

retry_on StandardError, wait: :exponentially_longer, attempts: 5

def perform(tenant, options = {})
Product.synchronize_bling(tenant, options)
end
end

0 comments on commit 23b725d

Please sign in to comment.