Skip to content

flowmachine.core.server.server_config

Class FlowmachineServerConfig

FlowmachineServerConfig(port: int, debug_mode: bool, store_dependencies: bool, cache_pruning_frequency: int, cache_pruning_timeout: int, server_thread_pool: concurrent.futures.thread.ThreadPoolExecutor)
Source: flowmachine/core/server/server_config.py

A namedtuple for passing server config options within the Flowmachine server.

Methods

cache_pruning_frequency

cache_pruning_frequency
Alias for field number 3

cache_pruning_timeout

cache_pruning_timeout
Alias for field number 4

debug_mode

debug_mode
Alias for field number 1

port

port
Alias for field number 0

server_thread_pool

server_thread_pool
Alias for field number 5

store_dependencies

store_dependencies
Alias for field number 2

get_env_as_bool

get_env_as_bool(env_var: str) -> bool
Source: flowmachine/core/server/server_config.py

Return a boolean true if the named env var is set to 'true' with any casing, and return False if it is set to anything else or not set at all.

Parameters

  • env_var: str

    Name of the environment variable

Returns

  • bool

get_server_config

get_server_config() -> flowmachine.core.server.server_config.FlowmachineServerConfig
Source: flowmachine/core/server/server_config.py

Read config options from environment variables.

Returns

  • flowmachine.core.server.server_config.FlowmachineServerConfig

    A namedtuple containing the config options