diff --git a/haupt/haupt/polyconf/config_settings/__init__.py b/haupt/haupt/polyconf/config_settings/__init__.py index fb75527397..4c89d34d3d 100644 --- a/haupt/haupt/polyconf/config_settings/__init__.py +++ b/haupt/haupt/polyconf/config_settings/__init__.py @@ -10,6 +10,8 @@ context = locals() MAX_CONCURRENCY = PLATFORM_CONFIG.max_concurrency or 1 +MIN_ARTIFACTS_DELETION_TIMEDELTA = PLATFORM_CONFIG.min_artifacts_deletion_timedelta +TTL_HEARTBEAT = PLATFORM_CONFIG.ttl_heartbeat set_logging(context=context, config=PLATFORM_CONFIG) set_admin(context=context, config=PLATFORM_CONFIG) set_secrets(context=context, config=PLATFORM_CONFIG) diff --git a/haupt/haupt/schemas/platform_config.py b/haupt/haupt/schemas/platform_config.py index cc2f779782..39914ce451 100644 --- a/haupt/haupt/schemas/platform_config.py +++ b/haupt/haupt/schemas/platform_config.py @@ -149,6 +149,9 @@ class PlatformConfig(BaseSchemaModel): ttl_heartbeat: Optional[int] = Field( alias="POLYAXON_TTL_HEARTBEAT", default=60 * 30 ) + min_artifacts_deletion_timedelta: Optional[int] = Field( + "POLYAXON_MIN_ARTIFACTS_DELETION_TIMEDELTA", default=80 + ) db_engine_name: Optional[Literal["sqlite", "pgsql"]] = Field( alias="POLYAXON_DB_ENGINE", default="sqlite" )