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