Skip to content

reconciler: flush_cache is a static per-deployment policy, not per-version #64

Description

@nanjiangwill

flush_cache_on_commit is fixed at serve() and applied to every reload — all-or-nothing. A publisher can't request a prompt-cache flush on one specific version's reload.

Why it's non-trivial: the reconciler converges to the latest pointer, so a single /update_weights_from_disk can coalesce several published versions. A per-version flush flag then has no unambiguous version to attach to (which coalesced version's flag wins?).

Options if we later want per-version flush:

  • accumulate — flush if any coalesced version asked (safe; an extra flush is harmless, a missed one isn't).
  • carry the directive on wake and consume it at the next reload (transient, nothing stored).

Low priority: the static policy covers the common case (one flush policy per run). Filing to track.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions