Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure only one choco process runs at a time #683

Open
ferventcoder opened this issue Apr 7, 2016 · 4 comments
Open

Ensure only one choco process runs at a time #683

ferventcoder opened this issue Apr 7, 2016 · 4 comments

Comments

@ferventcoder
Copy link
Member

Multiple running choco processes could potentially cause issues. Look for other choco.exes running (that are not a shim) and report that it cannot run if those are running.

This will not handle the cases where choco dll is embedded and/or being used in things like BoxStarter and ChocolateyGUI. But it should limit most issues.

@ferventcoder ferventcoder added this to the 0.9.10.x milestone Apr 7, 2016
@ferventcoder
Copy link
Member Author

This could also have some effect on Puppet, so be sure this is tested with that.

@ferventcoder
Copy link
Member Author

Coming out of prior discussions, most recently #679.

@alexchandel
Copy link

alexchandel commented Sep 27, 2016

You should be able to run multiple choco processes, as long as only one of them is making changes.

The downsides of choco list -lo and choco outdated providing possibly outdated information (as an install may be completing/race conditions) are outweighed by the usefulness of being able to list approximately what is installed.

For example, because Homebrew manages its state in a decentralized way, it's perfectly safe to brew install and brew list simultaneously. It's actually possible to install multiple packages simultaneously in Homebrew if their missing dependencies don't overlap (though there's probably no advantage to do so).

@ferventcoder
Copy link
Member Author

@alexchandel we've recently added some enhancements to 0.10.1 to allow multiple operations to occur without messing up pending installs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants