dbQueueWorker

This commit is contained in:
Alex Holliday committed 2026-06-12 15:43:36 -07:00
1 parent 51b6ec1751
commit 8b9c41464a
8 files changed
+394 -9

No files matched your search

+3 -2
View File
@@ -1,6 +1,6 @@
import mongoose from "mongoose";
import { MonitorModel } from "../dist/db/models/Monitor.js";
import { UserModel } from "../dist/db/models/User.js";
import { MonitorModel } from "../dist/domain/monitors/monitor.model.js";
import { UserModel } from "../dist/domain/users/user.model.js";
// Seeds a large number of HTTP monitors against real, resolving domains so the
// scheduler can be exercised under load. Run after `npm run build` (imports the
@@ -241,6 +241,7 @@ async function run() {
url: `https://${domain}`,
isActive: true,
interval,
lastEvaluatedAt: 0, // evaluator watermark; without it findUnevaluatedByMonitorId gets new Date(undefined)
});
if (docs.length === batchSize) {