修复错误
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { Server } from "node:http";
|
||||
|
||||
import { stopKuaishouIndustrySendCallbackRetryWorker } from "../services/platforms/kuaishou-industry/send-code-service.js";
|
||||
import { stopScheduledJobs } from "../services/scheduler/scheduler-service.js";
|
||||
import { logError, logInfo } from "../utils/logger.js";
|
||||
import type { StartupState } from "./state.js";
|
||||
@@ -20,6 +21,7 @@ export function createShutdownController(
|
||||
logInfo("[shutdown]", `received ${signal}, closing HTTP server`);
|
||||
|
||||
stopScheduledJobs();
|
||||
stopKuaishouIndustrySendCallbackRetryWorker();
|
||||
|
||||
if (!server.listening) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user