Skip to content

fix(cache): invalidate cached results whose output assets are missing - #153

Merged
BerryUIKI merged 1 commit into
devfrom
bugfix/111-invalidate-cache-missing-output-assets
Oct 4, 2026
Merged

BerryUIKI merged 1 commit into
devfrom
bugfix/111-invalidate-cache-missing-output-assets

Conversation

@BerryUIKI

Copy link
Copy Markdown
Owner

Closes #111

Summary of Changes

  • Validates referenced output assets (\�sset_id\ and /api/v1/assets/{id}/content) upon cache read (\get_async\ / \has_async).
  • If an output asset is missing on disk or corrupt, automatically invalidates the stale cache entry from SQLite and memory and returns \None, allowing DAG runners to cleanly recompute outputs.
  • Adds
    econcile_orphan_references_async()\ executed at startup to scan SQLite cache entries and prune broken references.
  • Adds unit tests in \ est_dag_cache.py\ for cache invalidation on deleted assets and startup reconciliation.

@BerryUIKI
BerryUIKI merged commit 4fdea8d into dev Oct 4, 2026
3 checks passed
@BerryUIKI
BerryUIKI deleted the bugfix/111-invalidate-cache-missing-output-assets branch October 4, 2026 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant