gabriel / musehub public
feat patch task/mpack-index-backfill #5 / 5
AI Agent gabriel · 6 days ago · Jun 1, 2026 · Diff

feat: batch backfill script for mpack.index byte-range indexing

enqueue_mpack_index_backfill.py processes one mpack at a time: - scans for mpacks with byte_offset IS NULL - enqueues a mpack.index job per mpack - waits for worker to complete before moving to next - reports byte_ranges populated after each job - supports --dry-run, --poll-interval, --limit run via: docker exec musehub python3 /app/deploy/enqueue_mpack_index_backfill.py

sha256:a73b6fa0537320dc76c143c38817fac1f9fa8b429139e1ddf7125dd341bc1647 sha
+12 symbols
sha256:cc8b2a86fe9100a48d5a8853a099197566a2f0fd20ce2b5b2a82bba5ba8531ac snapshot
+12
symbols added
0
dead code introduced
Semantic Changes 12 symbols
+ _byte_range_count function async_function _byte_range_count L86–95
+ _enqueue_one function async_function _enqueue_one L45–64
+ _get_unindexed_mpacks function async_function _get_unindexed_mpacks L30–42
+ _wait_for_job function async_function _wait_for_job L67–83
+ annotations import import annotations L18–18
+ argparse import import argparse L20–20
+ asyncio import import asyncio L21–21
+ logging import import logging L22–22
+ sys import import sys L23–23
+ time import import time L24–24
+ log variable variable log L27–27
+ main function async_function main L98–148

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:a73b6fa0537320dc76c143c38817fac1f9fa8b429139e1ddf7125dd341bc1647 --body "your comment"