Skip to content

Commit

Permalink
Update config setting
Browse files Browse the repository at this point in the history
  • Loading branch information
polyaxon-ci committed Sep 22, 2023
1 parent 4d1b7b3 commit 26aafcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haupt/haupt/polyconf/config_settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions haupt/haupt/schemas/platform_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 26aafcf

Please sign in to comment.