forked from rstudio/rstudio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve behavior of Run All Chunks in notebooks
This change improves the behavior of Run All Chunks in notebook mode, especially when the setup chunk is run automatically. It does the following: 1. Avoid calling prepare_for_rmd_chunk_execution once per chunk; instead, call it only when the first chunk enters the execution queue. Waiting for this RPC to return per chunk caused a lot of nondeterministic behavior, since e.g. the first chunk might an autosave of the doc first, but the second might not, so it entered the execution queue ahead of the first. 2. Sort chunks that enter the execution queue as they arrive. This ensures that chunks which arrive out of order will still be executed in document order (this includes interactively executed chunks) 3. Improve robustness checks to ensure that the currently executing chunk doesn't get re-queued until it's done executing, and the setup chunk is marked executed even if triggered manually.
- Loading branch information
Showing
3 changed files
with
147 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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