Class: Events::OrderCrHoldReleaseStarted
- Inherits:
-
ApplicationEvent
- Object
- RubyEventStore::Event
- ApplicationEvent
- Events::OrderCrHoldReleaseStarted
- Defined in:
- app/events/events.rb
Overview
Published SYNCHRONOUSLY from before_transition in_cr_hold => any, on: :release_order (Order state machine) — deliberately in-transaction, NOT
via publish_event/after-commit, so the synchronous subscriber
(Order::CrHoldReleaseReconciler) runs inside the release transaction and
a raise rolls the whole release back (SO728077 defect D / P1.4, see
doc/tasks/202607082351_P14_ATOMIC_CR_HOLD_RELEASE.md). Not published for
the hold_orders? self-loop (hold reasons still present).
Payload:
order_id: Integer