fix: Uncontrolled Parallelism in drainQueue leads to Resource Exhaustion - #47
fix: Uncontrolled Parallelism in drainQueue leads to Resource Exhaustion#47ankittroy-21 wants to merge 10 commits into
Conversation
Fixed: Dark mode readebility fixed
|
🎉 Thanks for submitting a PR, @ankittroy-21! Please confirm the following checklist before review:
A maintainer will review your PR shortly. Thank you! 🚀 |
|
Removing job status= processing make sense at some level but removing of job status = failed, how would you handle that , if you remove |
|
@madhav2348 the removal wasn't just a deletion, but a centralization of the logic let me explain |
|
Impressive wait for approval |
|
@madhav2348 when will it get merged ? |
|
Have some patience |
|
Please resolve merged conflict |
Summary: Implement concurrency control for job processing in
drainQueueby utilizing the existingqueueWorker.This PR addresses a bug where
drainQueuewould initiate processing for all queued jobs simultaneously, leading to resource exhaustion. It now uses a sequential worker-based approach.Issue ticket number and link
Closes #45
Changes
drainQueueto trigger thequeueWorkerinstead of manually iterating and spawning unawaited promises.job.idto the pipeline and removed redundant manual status updates, relying on the pipeline's internal state management.createQueueWorkerimport.writeFileimport.Testing
npm run backend:check) and ESLint (npm run lint).Checklist before requesting a review
.envvalues are committed