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