Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/aelfrice/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ def _cmd_upgrade(args: argparse.Namespace, out: object) -> int:
advice = upgrade_advice()
# Force a fresh sync check unless explicitly disabled. This is the
# one CLI surface where the user has explicitly asked about updates,
# so we ignore the 24h TTL.
# so we ignore the cache TTL.
if _update_check_disabled():
status = _read_update_cache()
else:
Expand Down
2 changes: 1 addition & 1 deletion src/aelfrice/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
PYPI_JSON_URL: Final[str] = f"https://pypi.org/pypi/{PACKAGE_NAME}/json"
CACHE_DIR: Final[Path] = Path.home() / ".cache" / "aelfrice"
CACHE_FILE: Final[Path] = CACHE_DIR / "update_check.json"
CACHE_TTL_SECONDS: Final[int] = 24 * 60 * 60 # 24h, mirrors GSD
CACHE_TTL_SECONDS: Final[int] = 6 * 60 * 60 # 6h: rapid-dev cadence
HTTP_TIMEOUT_SECONDS: Final[float] = 10.0
USER_AGENT: Final[str] = f"aelfrice-update-check/{PACKAGE_NAME}"
ENV_DISABLE: Final[str] = "AELF_NO_UPDATE_CHECK"
Expand Down
Loading