Wladjmir
08/30/2022, 11:03 PMspree/order#finalize
the event order_finalized
is published on bus at the end of the method.
i’m doubtful about the way to go.Chris Todorov
08/31/2022, 12:10 AMChris Todorov
08/31/2022, 12:11 AMafter_commit
hook wherever possible, because those run outside the main transaction. That is obviously not always possible or ideal, because it may happen multiple times and you may not be able to write your actions in an idempotent way.Chris Todorov
08/31/2022, 12:15 AMorder_finalized
and want to ensure that any action you perform doesn’t interfere with the state machine transition, you should ensure that it’s either performed asynchronously or any errors that may be raised by that action are rescued.waiting_for_dev
08/31/2022, 4:29 AMWladjmir
08/31/2022, 7:18 AM