Enhance monitoring features and UI:
- Add detailed CPU core monitoring option for better performance control - Update monitoring settings in app configuration - Improve parallel task execution for resource usage monitoring - Modify Telegram notification service to skip alerts from svchost processes - Add "Memory %" column to process table in HTML and update related JavaScript - Create performance test scripts for API response time evaluation
This commit is contained in:
@@ -77,6 +77,25 @@ try {
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Check if service is currently running and stop it before building
|
||||
Write-Host "Checking for existing service..."
|
||||
try {
|
||||
$existingService = Get-Service -Name $SERVICE_NAME -ErrorAction SilentlyContinue
|
||||
if ($existingService) {
|
||||
Write-Host "Found existing service: $($existingService.Status)" -ForegroundColor Yellow
|
||||
if ($existingService.Status -eq "Running") {
|
||||
Write-Host "Stopping running service before build..."
|
||||
Stop-Service -Name $SERVICE_NAME -Force -ErrorAction Stop
|
||||
Write-Host "Service stopped successfully" -ForegroundColor Green
|
||||
Start-Sleep -Seconds 2 # Give it a moment to fully stop
|
||||
}
|
||||
} else {
|
||||
Write-Host "No existing service found" -ForegroundColor Gray
|
||||
}
|
||||
} catch {
|
||||
Write-Host "Warning: Could not check existing service status: $($_.Exception.Message)" -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
# Build the service in release mode
|
||||
Write-Host "Building service..."
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user