minos.saga.executions.executors.abc

Classes

Executor

Executor class.

class Executor[source]

Bases: object

Executor class.

__init__(execution_uuid, *args, **kwargs)[source]
Parameters

execution_uuid (UUID) –

async exec(operation, *args, **kwargs)[source]

Execute the given operation.

Parameters
  • operation (SagaOperation) – The operation to be executed.

  • args – Additional positional arguments.

  • kwargs – Additional named arguments.

Returns

The execution response.

Return type

Any

async exec_function(func, *args, **kwargs)[source]

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