minos.saga.executions.executors.request
Classes
Request Executor class. |
- class RequestExecutor[source]
Bases:
Executor
Request Executor class.
This class has the responsibility to publish command on the corresponding broker’s queue.
- __init__(*args, user, broker_publisher, **kwargs)[source]
- Parameters
broker_publisher (BrokerPublisher) –
- async exec(operation, context)[source]
Exec method, that perform the publishing logic run an pre-callback function to generate the command contents.
- Parameters
operation (Optional[SagaOperation[Callable[[SagaContext, ...], Union[SagaRequest, Awaitable[SagaRequest]]]]]) – Operation to be executed.
context (SagaContext) – Execution context.
- Returns
A saga context instance.
- Return type