Add batch live refresh: Batch.refresh, update(live=True) and poll - #1104
Merged
Merged
Conversation
jepegit
force-pushed
the
781-live-poll
branch
from
September 26, 2026 07:46
12fe7b3 to
49ce184
Compare
jepegit
force-pushed
the
782-batch-live
branch
from
September 26, 2026 07:47
528fca1 to
7c0315d
Compare
jepegit
force-pushed
the
782-batch-live
branch
from
September 26, 2026 07:52
7c0315d to
64de73b
Compare
refresh() calls CellpyCell.update() on the loaded cells and clears the combined-summary cache when any changed; poll() repeats it on an interval, rebuilding summaries and the QC report on changed ticks. Rides on the cell-level update(); no new core API. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
jepegit
force-pushed
the
782-batch-live
branch
from
September 26, 2026 07:53
64de73b to
999cff0
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
This was referenced Sep 26, 2026
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.
Closes #782. Epic #783 (Stage 3, L5). Stacked on #1103 (
781-live-poll); retarget once that merges.What
Batch.refresh(labels=None, raise_errors=False, **update_kwargs) -> {label: bool | Exception}: callsCellpyCell.update()on every loaded cell of the lazy store (never triggers a first load) and clears the combined-summary cache when any cell changed, sob.summaries/b.plot()/ collectors see the appended data.Batch.update(live=True, **kw): the spec'd spelling; delegates torefreshand returns the existingBatchResult(no reload, no runner).Batch.poll(interval=60, on_update=None, until=None, max_polls=None, timeout=None, stop_when_complete=True, raise_errors=False, sleep=None, **update_kwargs): repeatsrefresh; on a changed tick rebuildssummaries, recomputes the QCreport()intob.last_report, and callson_update(batch, outcome). SamePollStatusand stop conditions ascellpy.utils.live.poll;Ctrl-Cstops cleanly.Tests
tests/test_batch_live.py(6 essential) on afrom_cellsbatch of two truncated neware copies with a fake clock growing them on chosen ticks.uv run pytest -m essential: 953 passed, 74 skipped.Docs
docs/agents/index.md(batch recipe), rootAGENTS.md,.issueflows/04-designs-and-guides/incremental-load-protocol.md,HISTORY.md, test registry.Made with Cursor