feat(master): persist scheduler tasks in RocksDB#151
Merged
Conversation
…ask-store # Conflicts: # crates/lance-context-master/src/scheduler.rs # crates/lance-context-master/src/state.rs
beinan
added a commit
that referenced
this pull request
Jul 21, 2026
## Background The Rust Tests job has been consistently slow (~23min). Two unrelated PRs (#151, #159) showed the same pattern, which pointed to a CI config issue rather than anything a specific change introduced. ## Root cause 1. **Wrong rust-cache path** (the real culprit): `workspaces` pointed at `crates/lance-context-core` and `python`, but this is a **single root workspace** whose build output lives in `./target`. Those subdirs have no `target/`, so the cache was always empty and every run rebuilt all dependencies from scratch — including the rocksdb C++ library compiled from source. 2. **Doctest step has near-zero value**: `lance-context-core` has a single doctest (~7s locally), but the step re-links the entire rocksdb-bearing crate, costing ~6.85min per run. ## Changes - `workspaces: "."` — cache the actual `./target`. - Remove the `Run doc tests` step. ## Expected impact - Drops the doctest step outright: **~-7min**. - Once the cache is warm, dependencies (especially rocksdb) are no longer rebuilt every run. The first run still has to populate the cache; from the **second run onward** compile time drops substantially. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4 <noreply@anthropic.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
TASK_DB_PATHandTASK_HISTORY_LIMITmaster configurationRecreatestrategyOperational notes
RecreateupdatesTesting
cargo fmt --all -- --checkcargo clippy --workspace --all-targets -- -D warningscargo test --workspacecargo clippy -p lance-context-master --all-targets -- -D warningscargo test -p lance-context-master --lib(22 passed)npm ci && npm run build(crates/lance-context-master/ui)