mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-18 18:23:18 +02:00
13 lines
603 B
TypeScript
13 lines
603 B
TypeScript
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();
|
|
}
|