fix(embeddings): add no-redis TP sidecar backfill mode
@wjayeshchecks…fix/backfill-no-redis-mode → master1 files · +26 −10updated 1mo agochecks n/a
▸Description
Summary
- add
--no-redis / --fallback-only mode to backfill_tp_sidecar_attrs.ts
- skip Redis connection entirely in that mode
- preserve existing TP sidecar attrs and fill missing attrs with fallback values
Validation
bunx tsc -p embeddings/tsconfig.json --noEmit --types bun,node
bun build embeddings/src/cli/backfill_tp_sidecar_attrs.ts --target=bun --outdir /tmp/mercury-backfill-script-build
git diff --check
- production dry-run:
--namespace composio-tools-prod --no-redis --dry-run --scan-count 10000 --batch-size 200 found 2,115 fallback patches, 0 Redis-backed, 0 errors
- production real run with same args without
--dry-run patched 2,115 rows, 0 errors
- final read-only production scan found 207,640 / 207,640 rows with all sidecar attrs and 0 bad related_tools_json