Class: SpreeCmCommissioner::Orders::DailyArchiveInactiveOrdersJob

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

Instance Method Summary collapse

Methods included from ApplicationJobDecorator

handle_deserialization_error, prepended

Instance Method Details

#performObject

Scheduled job that runs daily to archive incomplete orders inactive for 14+ days. Thin wrapper that calls DailyArchiveInactiveOrders service. ApplicationJob handles error logging via around_perform hook.



7
8
9
# File 'app/jobs/spree_cm_commissioner/orders/daily_archive_inactive_orders_job.rb', line 7

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