Class: SpreeSquare::OrderPushJob

Inherits:
BaseJob
  • Object
show all
Defined in:
app/jobs/spree_square/order_push_job.rb

Overview

A failed order push is the worst failure mode in this whole system — payment already taken, kitchen never sees the ticket. Retries with backoff; if genuinely exhausted, this is the one alert in the whole extension that should always reach a human regardless of Sentry config, which is why Alerting always logs at error level even when Sentry isn't available.

Instance Method Summary collapse

Instance Method Details

#perform(order_id) ⇒ Object



18
19
20
21
# File 'app/jobs/spree_square/order_push_job.rb', line 18

def perform(order_id)
  order = Spree::Order.find(order_id)
  SpreeSquare::OrderPusher.call(order)
end