feat(engine): allow [[objects]] to override per-object task priority#149
Merged
zc277584121 merged 1 commit intoJul 1, 2026
Merged
Conversation
Add an optional priority field to ObjectConfig so a user's [[objects]] match can override which objects a connector's own sync job processes first, instead of always deferring to the connector's built-in default (e.g. the file connector's entrypoint/src/tests/generated buckets). Unmatched objects keep the connector's existing default order; the override only reorders work within one connector's own sync job, not across connectors. Signed-off-by: Cheney Zhang <chen.zhang@zilliz.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
priorityfield toObjectConfigso a user's[[objects]]match can override which objects get processed first within a connector's own sync job.task_priority()default (e.g. the file connector's entrypoint/src/tests/generated buckets) when no[[objects]]match setspriority.Test plan
test_engine_object_priority_e2e.py): registers a real file connector with[[objects]] priorityoverrides, runs a real sync, and asserts both the inserted task priorities and the actual DB claim order.mfs-server(local ONNX embedding + Milvus Lite, single-worker concurrency): confirmed viaobjects.indexed_atand/v1/searchthat objects are embedded and become searchable in the configured priority order.ruff format --check/ruff checkclean.