feat
patch
#47
task/fetch-bundle-cleanup
#1 / 1
feat(#47): delete fetch bundle blob from MinIO after TTL
After wire_fetch_bundle stores a bundle for presigned download, schedule a fire-and-forget asyncio task that calls backend.delete(bundle_id) once ttl_seconds elapses. Cleanup is best-effort — failures are swallowed so the fetch response is never affected.
4 TDD tests (BC0–BC3): delete called after TTL, not called on inline path, failure is swallowed, exactly one delete per call.
sha256:46e81dddeede774999fe652687a67c51760ec542aed4be1d2ba910ec4b520ad6
sha
+23
~1
symbols
sha256:5641ca97b657ea4a4a1c32337f4d838aa50e5d0fbbe0cb9dff859f10594db248
snapshot
+23
symbols added
~1
symbol modified
0
dead code introduced
Semantic Changes
24 symbols
+
test_bc0_bundle_deleted_after_ttl
function
async_function test_bc0_bundle_deleted_after_ttl L141–175
+
test_bc1_no_delete_on_inline_path
function
async_function test_bc1_no_delete_on_inline_path L183–212
+
test_bc2_cleanup_failure_is_swallowed
function
async_function test_bc2_cleanup_failure_is_swallowed L220–253
+
test_bc3_exactly_one_cleanup_per_call
function
async_function test_bc3_exactly_one_cleanup_per_call L261–290
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:46e81dddeede774999fe652687a67c51760ec542aed4be1d2ba910ec4b520ad6 --body "your comment"
No comments yet. Be the first to start the discussion.