forked from puppetlabs/bolt
-
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.
(puppetlabsGH-2543) Block publishing events while prompting and parallel
This will block the executor from continuing to publish events until the user has entered input for a prompt. This prevents prompts inside of parallelize blocks from being interleaved with output from the block continuing to execute. This also adds a known issue that output from `resolve_reference` that uses `prompt` inside a parallel block may not be a good user experience. Lastly, this adjusts the spinner while running in parallel to pessimistically spin - that is, only spin if it's started by a long-running process and not stopped. This includes sending the `spin: stop` message to the spinner at any point that a non-long-running-process (like prompt) might begin. Closes puppetlabs#2543 !bug * **Don't continue executing parallel block when prompting** ([puppetlabs#2543](puppetlabs#2543)) Bolt will now pause printing messages from parallel blocks when prompting the user for input, to avoid confusing printing to the screen.
- Loading branch information
Showing
3 changed files
with
10 additions
and
7 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