Skip to content

Commit

Permalink
fix: fewer retries when upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraZiling committed Nov 5, 2023
1 parent 700515a commit 357b240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PipManager/Services/Environment/EnvironmentService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public bool CheckEnvironmentExists(EnvironmentItem environmentItem)
{
FileName = _configurationService.AppConfig!.CurrentEnvironment!.PythonPath,
Arguments =
$"-m pip install --upgrade \"{packageName}\" -i {_configurationService.GetUrlFromPackageSourceType()}",
$"-m pip install --upgrade \"{packageName}\" -i {_configurationService.GetUrlFromPackageSourceType()} --retries 1 --timeout 6",
UseShellExecute = false,
RedirectStandardError = true,
CreateNoWindow = true
Expand Down

0 comments on commit 357b240

Please sign in to comment.