minos.saga.executions.executors.request

Classes

RequestExecutor

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
async exec(operation, context)[source]

Exec method, that perform the publishing logic run an pre-callback function to generate the command contents.

Parameters
Returns

A saga context instance.

Return type

SagaContext

async exec_function(func, *args, **kwargs)

Execute a function.

Parameters
  • func (Callable) – Function to be executed.

  • args – Additional positional arguments to the function.

  • kwargs – Additional named arguments to the function.

Returns

The func result.

Return type

Any