mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-18 18:23:18 +02:00
Fix circular import issue
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { build } from "@server/build";
|
||||
import { startPingAccumulator } from "./routers/newt/pingAccumulator";
|
||||
import { startOlmOfflineChecker } from "./routers/olm";
|
||||
import { startNewtOfflineChecker } from "./routers/newt";
|
||||
import { initTelemetryClient } from "@server/lib/telemetry";
|
||||
import { initLogCleanupInterval } from "@server/lib/cleanupLogs";
|
||||
import { initAcmeCertSync } from "@server/lib/acmeCertSync";
|
||||
import { startRebuildQueueProcessor } from "@server/lib/rebuildClientAssociations";
|
||||
|
||||
export function startSchedulers() {
|
||||
// Start the ping accumulator for all builds - it batches per-site online/lastPing
|
||||
// updates into periodic bulk writes, preventing connection pool exhaustion.
|
||||
startPingAccumulator();
|
||||
|
||||
if (build != "saas") {
|
||||
startOlmOfflineChecker(); // this is to handle the offline check for olms
|
||||
startNewtOfflineChecker(); // this is to handle the offline check for newts
|
||||
}
|
||||
|
||||
initTelemetryClient();
|
||||
|
||||
initLogCleanupInterval();
|
||||
initAcmeCertSync();
|
||||
startRebuildQueueProcessor();
|
||||
}
|
||||
Reference in New Issue
Block a user