[Bug]: Task listing reads records one at a time; local Compile polls every 30 s regardless of poll_interval_ms

Open Beginner friendly
#7,622 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend

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:

  1. 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.
  2. The local Compile client in openviking/service/compile_service.py is built with poll_interval_ms=30000 hard-coded, although the compile configuration has a poll_interval_ms setting (default 5000) that the remote client honours.
Reproduction
  1. 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.
  2. Set poll_interval_ms low 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_ms to 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from volcengine/OpenViking

All issues in volcengine/OpenViking

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.