bec_lib.bec_service.BECService#
- class BECService(config: str | ServiceConfig, connector_cls: ConnectorBase, unique_service=False, wait_for_server=False)[source]#
Bases:
object
Methods
Delete a global variable from Redis
Get a global variable from Redis
Get all available global variables
Set a global variable through Redis
shutdown the BECService
wait_for_service
Attributes
get the status of active services
get the current BECService status
- delete_global_var(name: str) None [source]#
Delete a global variable from Redis
- Parameters:
name (str) – Name of the variable
- get_global_var(name: str) Any [source]#
Get a global variable from Redis
- Parameters:
name (str) – Name of the variable
- Returns:
Value of the variable
- Return type:
Any
- property service_status#
get the status of active services