minos.saga.definitions.steps.abc module¶
- class minos.saga.definitions.steps.abc.SagaStep(saga=None, **kwargs)[source]¶
Bases:
abc.ABC
Saga step class.
- commit(*args, **kwargs)[source]¶
Commit the current
SagaStep
on theSaga
.- Parameters
args – Additional positional arguments.
kwargs – Additional named arguments.
- Return type
- Returns
A
Saga
instance.
- conditional_step(*args, **kwargs)[source]¶
Create a new conditional step in the
Saga
.- Parameters
args – Additional positional parameters.
kwargs – Additional named parameters.
- Return type
- Returns
A new
SagaStep
instance.
- classmethod from_raw(raw, **kwargs)[source]¶
Build a new instance from raw.
- Parameters
raw (
typing.Union
[dict
[str
,typing.Any
],minos.saga.definitions.steps.abc.SagaStep
]) – A raw representation.kwargs – Additional named arguments.
- Return type
- Returns
A
SagaStep
instance.
- local_step(*args, **kwargs)[source]¶
Create a new local step in the
Saga
.- Parameters
args – Additional positional parameters.
kwargs – Additional named parameters.
- Return type
- Returns
A new
SagaStep
instance.
- abstract property raw: dict[str, typing.Any]¶
Generate a raw representation of the instance.
- Return type
dict
[str
,typing.Any
]- Returns
A
dict
instance.
- remote_step(*args, **kwargs)[source]¶
Create a new remote step in the
Saga
.- Parameters
args – Additional positional parameters.
kwargs – Additional named parameters.
- Return type
- Returns
A new
SagaStep
instance.