清理旧启动状态

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
-4
View File
@@ -16,10 +16,6 @@ export async function bootstrapCoreServices(
}
startupState.core.running = true;
startupState.browser.status = "skipped";
startupState.browser.message = "kuaishou lite mode";
startupState.ocr.status = "skipped";
startupState.ocr.message = "kuaishou lite mode";
while (!isShutdownStarted() && !startupState.core.ready) {
startupState.phase =
-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,