Feat/handle pagespeed (#448)

* Initial commit

* Prepare for pagespeed Check

* removed unused code, updated JSdoc

* reverted controller
This commit is contained in:
Alexander Holliday authored and GitHub committed 2024-07-25 14:59:31 -07:00
1 parent 7751a67372
commit 4071d6c97c
6 files changed
+50 -40

No files matched your search

+4 -1
View File
@@ -231,9 +231,12 @@ class JobQueue {
try {
const jobs = await this.getJobs();
for (const job of jobs) {
await this.queue.removeRepeatableByKey(job.key);
await this.queue.remove(job.id);
}
console.log(jobs);
this.workers.forEach(async (worker) => {
await worker.close();
});
await this.queue.obliterate();
logger.info(successMessages.JOB_QUEUE_OBLITERATE, {
service: SERVICE_NAME,