diff --git a/run_python_with_restart.ps1 b/run_python_with_restart.ps1 index bc88915..1f7625f 100644 --- a/run_python_with_restart.ps1 +++ b/run_python_with_restart.ps1 @@ -19,7 +19,7 @@ function Git-Pull { return $LASTEXITCODE -eq 0 } -$waitTime = 15 +$waitTime = 30 while ($true) { python -m pip install -r requirements.txt @@ -29,7 +29,6 @@ while ($true) { Write-Host "Tests failed. Attempting git pull and waiting $waitTime seconds before next attempt..." Git-Pull Start-Sleep -Seconds $waitTime - $waitTime *= 2 continue } @@ -41,7 +40,6 @@ while ($true) { if (Git-Pull) { Write-Host "Git pull successful. Restarting Python script..." - $waitTime = 15 continue } else { Write-Host "Git pull failed. Waiting $waitTime seconds before next attempt..." @@ -51,5 +49,4 @@ while ($true) { } Start-Sleep -Seconds $waitTime - $waitTime *= 2 } \ No newline at end of file