Skip to content

EvalIndex needs periodic refresh #7

@electron-rare

Description

@electron-rare

File: apps/api/src/kiki_cockpit/main.py:75

eval_index.refresh() is called once at startup. Unlike HFCache which has _periodic_refresh, EvalIndex has no scheduled refresh — new eval result files dropped after server start are invisible until restart.

Fix: add a background task in lifespan() that calls eval_index.refresh() every N seconds (e.g., 60 s, configurable via settings.eval_refresh_interval_seconds). Mirror the HFCache pattern.

Metadata

Metadata

Assignees

No one assigned

    Labels

    importantShould fix before next sprintpost-reviewSurfaced by 2026-05-04 cross-sprint review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions