Add live.poll() and retire utils.processor - #1103
Merged
Merged
Conversation
poll() refreshes a cell through CellpyCell.update() on an interval with on_update / until / max_polls / timeout / stop_when_complete stop conditions and an injectable sleep; the run is recorded on cell.poll_status. processor.py's thread-pool sketch is covered by batch.runner's threads executor. Co-authored-by: Cursor <cursoragent@cursor.com>
jepegit
force-pushed
the
781-live-poll
branch
from
September 26, 2026 07:46
12fe7b3 to
49ce184
Compare
10 of 21 tasks
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 #781. Epic #783 (Stage 3, L4). Stacked on #1102 (
164-cell-update); retarget once that merges.What
cellpy/utils/live.py:poll(cell_or_path, interval=30, on_update=None, stop_when_complete=True, until=None, max_polls=None, timeout=None, raise_errors=False, sleep=time.sleep, **get_kwargs). Each tick callsc.update();on_update(c)fires on ticks that changed the frames (and for the initial load when a path is passed). Stop conditions:c.source_complete,until(c),max_polls,timeout;Ctrl-Creturns the cell cleanly. Run bookkeeping onc.poll_status(PollStatus).sleep=is injectable for schedulers and tests.CellpyCell.source_complete: set byupdate()fromIncrementalChunk.complete.cellpy/utils/processor.pydeleted (batch.runneralready hasexecutor="threads"). Thebatch_core.pylstripbug named in the issue is moot:utils/batch_tools/no longer exists.Tests
tests/test_live_poll.py(8 essential) with a fake clock that grows the raw file on chosen ticks: growth → result equals a full load, path input,until,source_complete,timeout, error handling,KeyboardInterrupt, processor module gone.uv run pytest -m essential: 947 passed, 74 skipped.Docs
Folder-structure page,
docs/agents/index.md,.issueflows/04-designs-and-guides/incremental-load-protocol.md,HISTORY.md, test registry.Made with Cursor