Improve application responsiveness and background processing
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { db } from '../db/index.js';
|
||||
import { invalidateFleet } from '../pipeline/bus.js';
|
||||
import { provisioningPhases, type ProvisioningPhase, type ProvisioningProgress, type ProvisioningCheck,
|
||||
type ProvisioningCheckpoint, type ProvisioningBlocker, type RecoveryObservation } from '../../provisioning-detail.js';
|
||||
|
||||
@@ -116,5 +117,6 @@ export function recordProgress(id: string, update: ProgressUpdate): void {
|
||||
const insert = handle.prepare(`INSERT INTO server_deployment_events (deployment_id, created_at, message, kind, phase_key, details_json)
|
||||
VALUES (?, ?, ?, ?, ?, ?)`);
|
||||
for (const event of events) insert.run(id, now, event.message, event.kind, next.phase, event.details ? JSON.stringify(event.details) : null);
|
||||
if (events.length) invalidateFleet();
|
||||
})();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user