minos.saga.executions.executors.local
Classes
Local Executor class. |
- class LocalExecutor[source]
Bases:
Executor
Local Executor class.
- async exec(operation, context, *args, **kwargs)[source]
Execute the commit operation.
- Parameters
operation (Optional[SagaOperation[Callable[[SagaContext, ...], Union[SagaContext, None, Awaitable[Optional[SagaContext]]]]]]) – Operation to be executed.
context (SagaContext) – Actual execution context.
args – Additional positional arguments.
kwargs – Additional named arguments.
- Returns
An updated context instance.
- Return type