accept

suspend fun accept(model: AggregateModel<*>, command: Command<*>, scope: CoroutineScope): CommandResult

Accepts command, whose wait plan has only an ACCEPTED hop (isAcceptedOnly, a chain that is always valid), and returns its result at ACCEPTED at once. The command is routed and executed in scope, apart from the caller, with no wait context, so nothing is signalled about it; its outcome is only logged. Not durable: a node that stops before running it loses it.

A command of a type topicRouter routes is durable instead: it is answered at ACCEPTED once the broker acknowledged it on its context's command topic, and FAILED at ACCEPTED when the broker did not within its wait's timeout; the owner of its log partition executes it from there.