[Bug]: Task listing reads records one at a time; local Compile polls every 30 s regardless of poll_interval_ms
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start in openviking/service/task_store.py, where the task listing reads each durable record sequentially, and in openviking/service/compile_service.py, where the local Compile client is built with poll_interval_ms hard-coded to 30000. Compare with the remote client, which honours the configured poll_interval_ms, and pass self._config.poll_interval_ms through. Done when the local client uses the configured interval and listing reads records in bounded concurrent groups with the same owner checks, filters and ordering. Check with the reporter before starting, since they offered to open the PR and the two changes could be split.
Written by the indexing model from the issue text.
Description
Version
OpenViking v0.5.4 (9dfa9017a). The same code is on current main (checked 2026-11-13).
Summary
Two separate throughput problems in task handling:
- Listing tasks (
openviking/service/task_store.py) reads every durable task record sequentially, so a list call on object storage with a few thousand records takes minutes. - The local Compile client in
openviking/service/compile_service.pyis built withpoll_interval_ms=30000hard-coded, although the compile configuration has apoll_interval_mssetting (default 5000) that the remote client honours.
Reproduction
- Create a few thousand task records on a store with read latency and call the task list endpoint. Time grows linearly with the record count.
- Set
poll_interval_mslow and run a local Compile. It still polls every 30 seconds.
Proposed fix
- Read records in bounded concurrent groups (for example 16 at a time) with the same owner checks, filters and ordering.
- Pass
self._config.poll_interval_msto the local client.
We run a local patch with both changes and are happy to open a PR (or split it in two).
- Dominant language
- Python
- Stars
- 42.6k
- Forks
- 3.6k
- Avg merge
- 15h 44m
- Merged PRs (30d)
- 558
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from volcengine/OpenViking
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
volcengine/OpenViking#8116 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug]: parse_memory_file_with_fields parses first MEMORY_FIELDS match instead of trailing trailer, silently corrupting metadataPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
volcengine/OpenViking#8113 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#7732 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
volcengine/OpenViking#7620 ·
Maintainers usually reply within 1 day
All issues in volcengine/OpenViking
Similar issues
-
bug docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ActivityWatch/docs#223 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
comp/tools P2 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#159541 ·
Maintainers usually reply within 1 day
-
bot-triaged module: correctness (silent) module: cpu module: empty tensor module: loss triage review
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day