gigl.env.constants#

Environment-variable keys used across GiGL.

These keys are set either on component-process os.environ by gigl.src.common.utils.gigl_runtime.initialize_gigl_runtime or on launched process envs by gigl.src.common.custom_launcher.launch_custom and gigl.src.common.vertex_ai_launcher so that receiving CLIs can os.environ.get(...) their runtime context.

GIGL_RESOURCE_CONFIG_URI is also written to the parent os.environ by gigl.env.pipelines_config.get_resource_config so that downstream readers (e.g. GiglResourceConfigWrapper.get_resource_config_uri) can recover the value within the same process. Use read_resource_config_uri_from_env() to read it.

Attributes#

Functions#

is_env_flag_enabled(env_var_name)

Parses an environment variable and returns True iff the variable is set to '1' or 'True' (case-insensitive).

read_resource_config_uri_from_env()

Read the resource-config URI from GIGL_RESOURCE_CONFIG_URI.

Module Contents#

gigl.env.constants.is_env_flag_enabled(env_var_name)[source]#

Parses an environment variable and returns True iff the variable is set to ‘1’ or ‘True’ (case-insensitive).

Parameters:

env_var_name (str)

Return type:

bool

gigl.env.constants.read_resource_config_uri_from_env()[source]#

Read the resource-config URI from GIGL_RESOURCE_CONFIG_URI.

Returns:

The URI string if the variable is set, else None.

Return type:

Optional[str]

gigl.env.constants.GIGL_APPLIED_TASK_IDENTIFIER_ENV_KEY: Final[str] = 'GIGL_APPLIED_TASK_IDENTIFIER'[source]#
gigl.env.constants.GIGL_BIGQUERY_QUOTA_PROJECT_ENV_KEY: Final[str] = 'GIGL_BIGQUERY_QUOTA_PROJECT'[source]#
gigl.env.constants.GIGL_COMPONENT_ENV_KEY: Final[str] = 'GIGL_COMPONENT'[source]#
gigl.env.constants.GIGL_CPU_DOCKER_URI_ENV_KEY: Final[str] = 'GIGL_CPU_DOCKER_URI'[source]#
gigl.env.constants.GIGL_CUDA_DOCKER_URI_ENV_KEY: Final[str] = 'GIGL_CUDA_DOCKER_URI'[source]#
gigl.env.constants.GIGL_DEBUG: Final[str] = 'GIGL_DEBUG'[source]#
gigl.env.constants.GIGL_DISABLE_CLOUD_LOGGING_ENV_KEY: Final[str] = 'GIGL_DISABLE_CLOUD_LOGGING'[source]#
gigl.env.constants.GIGL_ENABLE_PERF_MONITORING: Final[str] = 'GIGL_ENABLE_PERF_MONITORING'[source]#
gigl.env.constants.GIGL_RESOURCE_CONFIG_URI_ENV_KEY: Final[str] = 'GIGL_RESOURCE_CONFIG_URI'[source]#
gigl.env.constants.GIGL_TASK_CONFIG_URI_ENV_KEY: Final[str] = 'GIGL_TASK_CONFIG_URI'[source]#