orka.startup.config module

Startup Configuration

This module handles configuration management and path discovery for OrKa startup services.

orka.startup.config.get_docker_dir() str[source]

Get the path to the docker directory containing Docker Compose configuration.

This function attempts to locate the docker directory in both development and production environments by checking multiple possible locations.

Returns:

Absolute path to the docker directory

Return type:

str

Raises:

FileNotFoundError – If the docker directory cannot be found in any of the expected locations

orka.startup.config.get_memory_backend() str[source]

Get the configured memory backend, defaulting to RedisStack.

orka.startup.config.get_service_endpoints(backend: str) dict[source]

Get service endpoint configuration for the specified backend.

Parameters:

backend – The backend type (‘redis’, ‘redisstack’, ‘kafka’, or ‘dual’)

Returns:

Dictionary containing service endpoint information

Return type:

dict

orka.startup.config.configure_backend_environment(backend: str) dict[source]

Configure environment variables for backend process.

Parameters:

backend – The backend type (‘redis’, ‘kafka’, or ‘dual’)

Returns:

Environment variables dictionary

Return type:

dict