sync update from LAN repo (source dhk-1 @ fc974e93)
This commit is contained in:
1 parent
a1fa13a238
commit
e2fea6a801
432 files changed
+68707
-2270
No files matched your search
@@ -8,6 +8,7 @@ deployment files. An effective non-empty API URL is the sole provider switch.
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
from typing import Literal
|
||||
from urllib.parse import urlsplit, urlunsplit
|
||||
|
||||
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
|
||||
@@ -145,6 +146,11 @@ class LocalWikiIndexConfig(BaseModel):
|
||||
description="Allowed local dev frontend origins; wiki_url uses the request Origin when it matches.",
|
||||
)
|
||||
auto_sync: bool = False
|
||||
# The administrator-facing schedule is persisted in system_settings.json.
|
||||
# These fields live on the effective runtime config so the scheduler never
|
||||
# needs to read the settings file separately from the runtime rebuild.
|
||||
auto_sync_schedule: Literal["hourly", "daily"] = "hourly"
|
||||
auto_sync_hour: int = Field(default=2, ge=0, le=23)
|
||||
sync_interval_seconds: int = Field(default=30, ge=10, le=86400)
|
||||
sync_page_size: int = Field(default=100, ge=1, le=500)
|
||||
sync_concurrency: int = Field(default=3, ge=1, le=32)
|
||||
|
||||
Reference in new issue
Block a user