Skip to content

One-shot cache refresh command for job-style writers (flapi cache refresh) #206

Description

@jrosskopf

Problem

On-demand refresh needs a running server with --config-service — i.e. an always-on writer, which on Cloud Run means a 24/7 instance (plus, in the observed setup, a Cloud SQL catalog) just to refresh data that changes once a day.

Proposal

flapi cache refresh --config flapi.yaml (--endpoint /path ... | --all): opens DuckDB + DuckLake read-write, runs CacheManager::refreshCache for the selected endpoints (same watermark/merge/retention semantics as the server), prints a JSON summary, exits 0 ok / 1 a refresh failed (others still run) / 2 usage (nothing selected, unknown or uncached endpoint, read-only catalog). No port, no warm-up. Fits a Cloud Run Job or an Airflow task after dbt build; replicas use ducklake.read-only.

Gap G6 of the Cloud Run review.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions