laborchestrator.sila_server.generated.cancelcontroller package¶
Submodules¶
- laborchestrator.sila_server.generated.cancelcontroller.cancelcontroller_base module
- laborchestrator.sila_server.generated.cancelcontroller.cancelcontroller_client module
- laborchestrator.sila_server.generated.cancelcontroller.cancelcontroller_errors module
- laborchestrator.sila_server.generated.cancelcontroller.cancelcontroller_feature module
- laborchestrator.sila_server.generated.cancelcontroller.cancelcontroller_types module
Module contents¶
- class laborchestrator.sila_server.generated.cancelcontroller.CancelAll_Responses[source]¶
Bases:
NamedTuple- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {}¶
- _fields = ()¶
- classmethod _make(iterable)¶
Make a new CancelAll_Responses object from a sequence or iterable
- _replace(**kwds)¶
Return a new CancelAll_Responses object replacing specified fields with new values
- class laborchestrator.sila_server.generated.cancelcontroller.CancelCommand_Responses[source]¶
Bases:
NamedTuple- _asdict()¶
Return a new dict which maps field names to their values.
- _field_defaults = {}¶
- _fields = ()¶
- classmethod _make(iterable)¶
Make a new CancelCommand_Responses object from a sequence or iterable
- _replace(**kwds)¶
Return a new CancelCommand_Responses object replacing specified fields with new values
- class laborchestrator.sila_server.generated.cancelcontroller.CancelControllerBase(parent_server: Server)[source]¶
Bases:
FeatureImplementationBase,ABC- abstractmethod CancelAll(*, metadata: MetadataDict) CancelAll_Responses[source]¶
Cancels all currently running Observable and Unobservable Commands running on this SiLA Server.
The SiLA Server MUST throw an Execution Error indicating ‘cancellation’ as the reason for the Command not being able to finish successfully.
- param metadata:
The SiLA Client Metadata attached to the call
- abstractmethod CancelCommand(CommandExecutionUUID: str, *, metadata: MetadataDict) CancelCommand_Responses[source]¶
Cancel a specified currently running Observable Command or cancel all currently running Observable Commands .
For any canceled Observable Command the SiLA Server MUST update the Command Execution Status to “Command Finished with Error”. The SiLA Server MUST throw a descriptive error message indicating cancellation as the reason for the Command execution not being able to finish successfully for any canceled Command.
- param CommandExecutionUUID:
The Command Execution UUID according to the SiLA Standard.
- param metadata:
The SiLA Client Metadata attached to the call
- _abc_impl = <_abc._abc_data object>¶
- class laborchestrator.sila_server.generated.cancelcontroller.CancelControllerClient[source]¶
Bases:
objectThis feature offers commands to cancel/terminate Commands. Cancellation is the act of stopping the running Command execution(s), irrevocably. The SiLA Server SHOULD be able to be in a state where any further commands can be issued after a cancellation.
- CancelAll(*, metadata: Iterable[ClientMetadataInstance] | None = None) CancelAll_Responses[source]¶
Cancels all currently running Observable and Unobservable Commands running on this SiLA Server.
The SiLA Server MUST throw an Execution Error indicating ‘cancellation’ as the reason for the Command not being able to finish successfully.
- CancelCommand(CommandExecutionUUID: UUID, *, metadata: Iterable[ClientMetadataInstance] | None = None) CancelCommand_Responses[source]¶
Cancel a specified currently running Observable Command or cancel all currently running Observable Commands .
For any canceled Observable Command the SiLA Server MUST update the Command Execution Status to “Command Finished with Error”. The SiLA Server MUST throw a descriptive error message indicating cancellation as the reason for the Command execution not being able to finish successfully for any canceled Command.
- exception laborchestrator.sila_server.generated.cancelcontroller.InvalidCommandExecutionUUID(message: str | None = None)[source]¶
Bases:
DefinedExecutionError- _abc_impl = <_abc._abc_data object>¶
- exception laborchestrator.sila_server.generated.cancelcontroller.OperationNotSupported(message: str | None = None)[source]¶
Bases:
DefinedExecutionError- _abc_impl = <_abc._abc_data object>¶
- laborchestrator.sila_server.generated.cancelcontroller.UUID¶
alias of
str