Skip to content

feat(engine): move embedding queue from shared schema to per-engine#1

Merged
jgpruitt merged 1 commit intomainfrom
me0/embeddings
Mar 18, 2026
Merged

feat(engine): move embedding queue from shared schema to per-engine#1
jgpruitt merged 1 commit intomainfrom
me0/embeddings

Conversation

@jgpruitt
Copy link
Copy Markdown
Collaborator

Remove the shared embedding schema (queue, queue_hist, enqueue_embedding, claim_batch) from bootstrap and relocate embedding infrastructure into a per-engine migration (005_embedding_queue.sql). Each engine schema now owns its own embedding_queue table with FK ON DELETE CASCADE, enqueue_embedding() trigger function, and claim_embedding_batch() for the worker. This enables clean DROP SCHEMA CASCADE, pg_dump portability, and per-engine QoS control.

Remove the shared `embedding` schema (queue, queue_hist, enqueue_embedding,
claim_batch) from bootstrap and relocate embedding infrastructure into a
per-engine migration (005_embedding_queue.sql). Each engine schema now owns
its own embedding_queue table with FK ON DELETE CASCADE, enqueue_embedding()
trigger function, and claim_embedding_batch() for the worker. This enables
clean DROP SCHEMA CASCADE, pg_dump portability, and per-engine QoS control.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jgpruitt jgpruitt merged commit 272f2b9 into main Mar 18, 2026
1 check passed
@jgpruitt jgpruitt deleted the me0/embeddings branch March 18, 2026 15:50
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