Browse Source

feat(job-queue): No swallow of errors during add (#2756)

Pieter Doms 1 year ago
parent
commit
88d1cb9284
1 changed files with 0 additions and 5 deletions
  1. 0 5
      packages/core/src/job-queue/job-queue.ts

+ 0 - 5
packages/core/src/job-queue/job-queue.ts

@@ -99,13 +99,8 @@ export class JobQueue<Data extends JobData<Data> = object> {
 
         const isBuffered = await this.jobBufferService.add(job);
         if (!isBuffered) {
-            try {
                 const addedJob = await this.jobQueueStrategy.add(job);
                 return new SubscribableJob(addedJob, this.jobQueueStrategy);
-            } catch (err: any) {
-                Logger.error(`Could not add Job to "${this.name}" queue`, undefined, err.stack);
-                return new SubscribableJob(job, this.jobQueueStrategy);
-            }
         } else {
             const bufferedJob = new Job({
                 ...job,