chore(run/core): 🔧 Add post-startup validation checks for system health and resource availability
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
593d48306b
commit
4f49dfecc4
1 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
import { colors } from '../utils/colors';
|
||||
import readline from 'node:readline';
|
||||
import * as readline from 'node:readline';
|
||||
import { createConnection } from 'node:net';
|
||||
import { detectSoftFailure } from './response-validator';
|
||||
import { readPidFile } from '@lilith/service-orchestrator';
|
||||
|
|
@ -522,7 +522,7 @@ export class PostStartupMonitor {
|
|||
|
||||
private resetMetrics(): void {
|
||||
// Reset counters but keep the map entries
|
||||
for (const metrics of this.metrics.values()) {
|
||||
for (const metrics of Array.from(this.metrics.values())) {
|
||||
metrics.requests = 0;
|
||||
metrics.errors = 0;
|
||||
metrics.warnings = 0;
|
||||
|
|
@ -615,7 +615,7 @@ export class PostStartupMonitor {
|
|||
lines.push('');
|
||||
lines.push(this.boxTop('Health', boxWidth));
|
||||
|
||||
for (const result of this.healthStatus.values()) {
|
||||
for (const result of Array.from(this.healthStatus.values())) {
|
||||
const statusIcon = result.status === 'healthy'
|
||||
? colors.healthy('✓')
|
||||
: result.status === 'warning'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue