2021-08-27 16:14:53 +00:00
|
|
|
from ...backend_config.converters import safe_text_to_bool
|
2020-12-22 21:00:57 +00:00
|
|
|
from ...backend_config.environment import EnvEntry
|
2019-10-25 19:28:44 +00:00
|
|
|
|
|
|
|
|
2020-12-22 21:00:57 +00:00
|
|
|
ENV_HOST = EnvEntry("CLEARML_API_HOST", "TRAINS_API_HOST")
|
|
|
|
ENV_WEB_HOST = EnvEntry("CLEARML_WEB_HOST", "TRAINS_WEB_HOST")
|
|
|
|
ENV_FILES_HOST = EnvEntry("CLEARML_FILES_HOST", "TRAINS_FILES_HOST")
|
|
|
|
ENV_ACCESS_KEY = EnvEntry("CLEARML_API_ACCESS_KEY", "TRAINS_API_ACCESS_KEY")
|
|
|
|
ENV_SECRET_KEY = EnvEntry("CLEARML_API_SECRET_KEY", "TRAINS_API_SECRET_KEY")
|
2021-08-02 19:51:26 +00:00
|
|
|
ENV_AUTH_TOKEN = EnvEntry("CLEARML_AUTH_TOKEN")
|
2020-12-22 21:00:57 +00:00
|
|
|
ENV_VERBOSE = EnvEntry("CLEARML_API_VERBOSE", "TRAINS_API_VERBOSE", type=bool, default=False)
|
|
|
|
ENV_HOST_VERIFY_CERT = EnvEntry("CLEARML_API_HOST_VERIFY_CERT", "TRAINS_API_HOST_VERIFY_CERT", type=bool, default=True)
|
|
|
|
ENV_CONDA_ENV_PACKAGE = EnvEntry("CLEARML_CONDA_ENV_PACKAGE", "TRAINS_CONDA_ENV_PACKAGE")
|
2021-08-12 10:36:49 +00:00
|
|
|
ENV_NO_DEFAULT_SERVER = EnvEntry("CLEARML_NO_DEFAULT_SERVER", "TRAINS_NO_DEFAULT_SERVER", type=bool, default=True)
|
2021-08-02 22:28:08 +00:00
|
|
|
ENV_DISABLE_VAULT_SUPPORT = EnvEntry('CLEARML_AGENT_DISABLE_VAULT_SUPPORT', type=bool)
|
2021-10-19 07:46:43 +00:00
|
|
|
ENV_ENABLE_ENV_CONFIG_SECTION = EnvEntry('CLEARML_AGENT_ENABLE_ENV_CONFIG_SECTION', type=bool)
|
|
|
|
ENV_ENABLE_FILES_CONFIG_SECTION = EnvEntry('CLEARML_AGENT_ENABLE_FILES_CONFIG_SECTION', type=bool)
|
2022-03-15 08:04:25 +00:00
|
|
|
ENV_VENV_CONFIGURED = EnvEntry('VIRTUAL_ENV', type=str)
|
2022-03-24 20:04:25 +00:00
|
|
|
ENV_PROPAGATE_EXITCODE = EnvEntry("CLEARML_AGENT_PROPAGATE_EXITCODE", type=bool, default=False)
|
2021-08-27 16:14:53 +00:00
|
|
|
ENV_INITIAL_CONNECT_RETRY_OVERRIDE = EnvEntry(
|
|
|
|
'CLEARML_AGENT_INITIAL_CONNECT_RETRY_OVERRIDE', default=True, converter=safe_text_to_bool
|
|
|
|
)
|
2023-07-04 11:35:54 +00:00
|
|
|
ENV_FORCE_MAX_API_VERSION = EnvEntry("CLEARML_AGENT_FORCE_MAX_API_VERSION", type=str)
|
2022-01-12 18:29:17 +00:00
|
|
|
|
|
|
|
"""
|
|
|
|
Experimental option to set the request method for all API requests and auth login.
|
|
|
|
This could be useful when GET requests with payloads are blocked by a server as
|
|
|
|
POST requests can be used instead.
|
|
|
|
|
|
|
|
However this has not been vigorously tested and may have unintended consequences.
|
|
|
|
"""
|
2022-01-31 10:39:39 +00:00
|
|
|
ENV_API_DEFAULT_REQ_METHOD = EnvEntry("CLEARML_API_DEFAULT_REQ_METHOD", default="GET")
|