onSagaEvent

open suspend override fun onSagaEvent(event: SagaEvent)

Called when a saga event occurs.

This is a suspend function, allowing monitors to perform async operations such as network calls, database writes, or other non-blocking I/O.

Exceptions thrown by this method are caught and logged but do not affect saga execution.

Parameters

event

The saga event that occurred