Skip to content

v1.5.0

Choose a tag to compare

@github-actions github-actions released this 08 Jun 23:05
· 10 commits to main since this release

Stops the shared download cache from growing without bound. Source videos are cached at ~/.cache/analyze-video/downloads/ and reused across runs; this release makes that cache self-managing and adds a manual clear.

Added

  • Self-managing download cache. At the end of each run, process.py evicts cached downloads older than 14 days and trims the cache back under 5 GB total (least-recently-used first). It never removes the download the current run depends on, or one a concurrent run holds via an .in_use lease. Tune the limits with ANALYZE_VIDEO_CACHE_MAX_AGE_DAYS and ANALYZE_VIDEO_CACHE_MAX_GB (set either to 0 to disable that limit).
  • Manual cache clear. python3 scripts/setup.py --clear-cache wipes cached downloads and reports how much space it freed, while leaving the docx module cache intact and skipping anything an in-progress analysis is using. setup.py --json now reports the current cache size as download_cache_bytes.

Safety

  • Cache maintenance is intentionally strict: it only ever deletes directories directly under the downloads cache whose names are 16-character hex cache keys, and refuses to operate if that path is a symlink, so unrelated data (including the sibling docx node_modules cache) is never at risk.

Full Changelog: v1.4.0...v1.5.0