choco icon indicating copy to clipboard operation
choco copied to clipboard

Only allow one choco.exe process to run at a time

Open ferventcoder opened this issue 9 years ago • 4 comments

This is meant to correct some possible issues that could and have occurred when running multiple processes at the same time.

ferventcoder avatar Jun 22 '16 15:06 ferventcoder

I couldn't find a logged issue on this although it has been talked about several times.

ferventcoder avatar Jun 22 '16 15:06 ferventcoder

In the past, when choco.exe still used to work for me, I did frequently run several choco.exe processes at a time from different ConEmu tabs.

I never noticed any issue that could have caused by this. (I think however, I never did run install or upgrade processes for the same package.)

Now I have to make a complete revocation of my previous statement above: I just got bitten by this problem, and the result was a removed choco.exe file (the real one, not the shim). Luckily, there was still the choco.exe.old file present, and I could re-upgrade chocolatey by renaming it to choco.exe and running choco again...

pdfkungfoo avatar Jun 23 '16 16:06 pdfkungfoo

+1. The problem I encounter is that during a long choco install command run (vs2013) I tried to search for something else. I thought search operation should be read only but it removed the pending vs2013 installation record. The actual vs installer succeeds but choco is then confused.

Several issues here.

  • I would expect "choco search" to be read-only.
  • Critical operations should be guarded.
  • Read-only operations should be able to run in parallel unless what it reads is being updated.

v-yadli avatar Jul 22 '16 12:07 v-yadli

Does this not conflict with #653?

georgevanburgh avatar Apr 13 '17 11:04 georgevanburgh