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_global_var

Delete a global variable from Redis

get_global_var

Get a global variable from Redis

global_vars

Get all available global variables

set_global_var

Set a global variable through Redis

shutdown

shutdown the BECService

wait_for_service

Attributes

service_status

get the status of active services

status

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

global_vars() str[source]#

Get all available global variables

property service_status#

get the status of active services

set_global_var(name: str, val: Any) None[source]#

Set a global variable through Redis

Parameters:
  • name (str) – Name of the variable

  • val (Any) – Value of the variable

shutdown()[source]#

shutdown the BECService

property status: BECStatus#

get the current BECService status