Skip to content

feat(engine): allow [[objects]] to override per-object task priority#149

Merged
zc277584121 merged 1 commit into
zilliztech:mainfrom
zc277584121:feat/object-priority-override
Jul 1, 2026
Merged

feat(engine): allow [[objects]] to override per-object task priority#149
zc277584121 merged 1 commit into
zilliztech:mainfrom
zc277584121:feat/object-priority-override

Conversation

@zc277584121

Copy link
Copy Markdown
Collaborator

Summary

  • Add an optional priority field to ObjectConfig so a user's [[objects]] match can override which objects get processed first within a connector's own sync job.
  • Falls back to the connector's existing built-in task_priority() default (e.g. the file connector's entrypoint/src/tests/generated buckets) when no [[objects]] match sets priority.
  • Scoped to a single connector's own sync job — does not change scheduling across different connectors running at the same time.

Test plan

  • New end-to-end test (test_engine_object_priority_e2e.py): registers a real file connector with [[objects]] priority overrides, runs a real sync, and asserts both the inserted task priorities and the actual DB claim order.
  • Manually verified against a live mfs-server (local ONNX embedding + Milvus Lite, single-worker concurrency): confirmed via objects.indexed_at and /v1/search that objects are embedded and become searchable in the configured priority order.
  • Full test suite passes with no regressions; ruff format --check / ruff check clean.

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>
@zc277584121 zc277584121 merged commit 2228170 into zilliztech:main Jul 1, 2026
10 checks passed
@zc277584121 zc277584121 deleted the feat/object-priority-override branch July 1, 2026 12:16
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