Repository navigation
Per-run results: End-of-Run and drivers as runs finish, one chart rebuild, partial charts (#388) - #399
Open
danyill wants to merge 2 commits into
Open
Per-run results: End-of-Run and drivers as runs finish, one chart rebuild, partial charts (#388)#399danyill wants to merge 2 commits into
danyill wants to merge 2 commits into
Conversation
run_simulation gains a private _on_run hook (RunDone per kept run, in run order; parallel batches number and hand over rows as each chunk is merged). run_simulation_with_reports writes each run's End-of-Run block from it (_RunFold) instead of looping over every run after the batch; the Final Results report is still built once at the end by the unchanged code. report_progress now only announces the Final results report, and the report date is read when the batch starts. Public on_run hook added.
…charts while a batch runs Each run's event log is replayed for the downtime drivers as the run finishes (BatchAttribution/CapacityFold), so only the reduction is left at the end. Stop keeps the drivers of the runs already finished. A result set rebuilds the Charts page's list once instead of once per setter (four times), most of the end-of-batch wait on a big run. While a background batch runs, the Charts page draws the runs finished so far, marked "Partial: N of M runs" (label and chart subtitle), throttled so it costs at most about a tenth of the batch; the final results replace it. Closes #388
This branch has not been deployed
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 #388.
Sum and percentile statistics stay batch-computed (Python 3.14's compensated
sum()), so the final numbers are unchanged.