Skip to content

Commit

Permalink
fix bad exit errorcode
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Aug 25, 2024
1 parent f0374e8 commit 10892f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/run-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,21 +190,22 @@ jobs:
run: |
$Stoploop = $false
[ int ]$MaxRetries = "60"
[ int ]$Retrycount = $MaxRetries
do {
try {
$id = Get-Process qpep -ErrorAction Stop | select -expand id
Write-Host "QPep client still active with pid ${id}, wait 1sec..."
$Retrycount = $Retrycount - 1
Write-Host "QPep client still active with pid ${id}, wait 1sec... (Retries: ${Retrycount})"
Start-Sleep -Seconds 1
$Retrycount = $Retrycount - 1
}
catch {
$Stoploop = $true
Write-Host "QPep client stopped"
}
if ($Retrycount -lt 0){
Write-Error "Could not get stop client after $MaxRetries retries, forcing stop."
Write-Host "Could not get stop client after $MaxRetries retries, forcing stop."
$Stoploop = $true
Get-Process qpep | Stop-Process
Expand Down

0 comments on commit 10892f5

Please sign in to comment.