清理旧启动状态

This commit is contained in:
yml
2026-05-25 22:15:35 +08:00
parent 245089d871
commit 38c6323649
5 changed files with 2 additions and 38 deletions
-20
View File
@@ -12,16 +12,6 @@ export function createStartupState() {
lastAttemptAt: "",
lastError: "",
},
browser: {
status: "pending",
message: "",
lastAttemptAt: "",
},
ocr: {
status: "pending",
message: "",
lastAttemptAt: "",
},
process: {
lastUnhandledRejection: null,
lastUncaughtException: null,
@@ -41,16 +31,6 @@ export function buildHealthPayload(startupState: StartupState, shutdownStarted:
lastAttemptAt: startupState.core.lastAttemptAt,
lastError: startupState.core.lastError,
},
browser: {
status: startupState.browser.status,
message: startupState.browser.message,
lastAttemptAt: startupState.browser.lastAttemptAt,
},
ocr: {
status: startupState.ocr.status,
message: startupState.ocr.message,
lastAttemptAt: startupState.ocr.lastAttemptAt,
},
process: {
pid: process.pid,
shutdownStarted,