From 47fc16806dc1fb8b3cc54deed102fbb6d951f5ad Mon Sep 17 00:00:00 2001 From: Rohit Date: Tue, 5 Aug 2025 01:22:51 +0530 Subject: [PATCH] feat: continue other job execution on fail --- maxun-core/src/utils/concurrency.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maxun-core/src/utils/concurrency.ts b/maxun-core/src/utils/concurrency.ts index 56c15fd9..41fc1047 100644 --- a/maxun-core/src/utils/concurrency.ts +++ b/maxun-core/src/utils/concurrency.ts @@ -41,6 +41,10 @@ export default class Concurrency { job().then(() => { // console.debug("Job finished, running the next waiting job..."); this.runNextJob(); + }).catch((error) => { + console.error(`Job failed with error: ${error.message}`); + // Continue processing other jobs even if one fails + this.runNextJob(); }); } else { // console.debug("No waiting job found!");