Class: SpreeCmCommissioner::Orders::BulkArchiveInactiveOrdersJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- ApplicationJob
- SpreeCmCommissioner::Orders::BulkArchiveInactiveOrdersJob
- Defined in:
- app/jobs/spree_cm_commissioner/orders/bulk_archive_inactive_orders_job.rb
Instance Method Summary collapse
-
#perform ⇒ Object
Manual job that archives ALL incomplete orders inactive for 14+ days.
Methods included from ApplicationJobDecorator
handle_deserialization_error, prepended
Instance Method Details
#perform ⇒ Object
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 |