initial Pulse implementation

This commit is contained in:
Alex Holliday committed 2025-06-06 14:05:59 +08:00
1 parent 1f9fbf7115
commit 9a22d4a971
12 files changed
+455 -72

No files matched your search

+8 -1
View File
@@ -51,7 +51,6 @@ class JobQueue {
}
})
);
this.healthCheckInterval = setInterval(async () => {
try {
const queueHealthChecks = await this.checkQueueHealth();
@@ -116,6 +115,14 @@ class JobQueue {
});
}
pauseJob = async (monitor) => {
this.deleteJob(monitor);
};
resumeJob = async (monitor) => {
this.addJob(monitor._id, monitor);
};
async addJob(jobName, monitor) {
this.logger.info({
message: `Adding job ${monitor?.url ?? "No URL"}`,