initial Pulse implementation
This commit is contained in:
1 parent
1f9fbf7115
commit
9a22d4a971
12 files changed
+455
-72
No files matched your search
@@ -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"}`,
|
||||
|
||||
Reference in new issue
Block a user