Fix circular import issue

This commit is contained in:
Owen
2026-08-17 11:30:27 -04:00
parent 7d6f3a2925
commit 749abdcb56
6 changed files with 80 additions and 67 deletions
+12
View File
@@ -0,0 +1,12 @@
import { build } from "@server/build";
import { startRemoteExitNodeOfflineChecker } from "./routers/remoteExitNode";
import { startExitNodeReconnectScheduler } from "./routers/remoteExitNode/exitNodeReconnectScheduler";
import { startSchedulers as ossStartSchedulers } from "@server/startSchedulers";
export function startSchedulers() {
if (build != "saas") {
startRemoteExitNodeOfflineChecker(); // this is to handle the offline check for remote exit nodes
startExitNodeReconnectScheduler(); // check pending exit node reconnects and notify newts
}
ossStartSchedulers();
}