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

+2 -2
View File
@@ -595,8 +595,8 @@ class MonitorController {
{ new: true }
);
monitor.isActive === true
? await this.jobQueue.addJob(monitor._id, monitor)
: await this.jobQueue.deleteJob(monitor);
? await this.jobQueue.resumeJob(monitor._id, monitor)
: await this.jobQueue.pauseJob(monitor);
return res.success({
msg: monitor.isActive
-12
View File
@@ -46,18 +46,6 @@ class JobQueueController {
}
};
obliterateQueue = async (req, res, next) => {
try {
await this.jobQueue.obliterate();
return res.success({
msg: this.stringService.queueObliterate,
});
} catch (error) {
next(handleError(error, SERVICE_NAME, "obliterateQueue"));
return;
}
};
flushQueue = async (req, res, next) => {
try {
const result = await this.jobQueue.flushQueues();