Class: SpreeCmCommissioner::Orders::BulkArchiveInactiveOrdersJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/spree_cm_commissioner/orders/bulk_archive_inactive_orders_job.rb

Instance Method Summary collapse

Methods included from ApplicationJobDecorator

handle_deserialization_error, prepended

Instance Method Details

#performObject

Manual job that archives ALL incomplete orders inactive for 14+ days. Thin wrapper that calls BulkArchiveInactiveOrders service. ApplicationJob handles error logging via around_perform hook. Triggered manually via Sidekiq (not scheduled).



8
9
10
# File 'app/jobs/spree_cm_commissioner/orders/bulk_archive_inactive_orders_job.rb', line 8

def perform
  SpreeCmCommissioner::Orders::BulkArchiveInactiveOrders.new.call
end