Class: SpreeDoordash::DeliveryDispatchJob
- Defined in:
- app/jobs/spree_doordash/delivery_dispatch_job.rb
Overview
A failed dispatch is the worst failure mode in this whole extension — payment already taken, kitchen already has the ticket (spree_square's own push is independent), but no one is actually coming to pick it up. Same retry/dead-letter/Alerting shape as SpreeSquare::OrderPushJob for exactly that reason.
Instance Method Summary collapse
Instance Method Details
#perform(order_id) ⇒ Object
17 18 19 20 |
# File 'app/jobs/spree_doordash/delivery_dispatch_job.rb', line 17 def perform(order_id) order = Spree::Order.find(order_id) SpreeDoordash::DeliveryDispatcher.call(order) end |