소스 검색

fix: Catch and ignore job errors in queue, as should already be handled/reported

Owen Diffey 1 년 전
부모
커밋
dc1d00f15f
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      backend/src/JobQueue.ts

+ 1 - 0
backend/src/JobQueue.ts

@@ -123,6 +123,7 @@ export class JobQueue {
 			job.execute()
 				.then(callback?.resolve)
 				.catch(callback?.reject)
+				.catch(() => {}) // Ignore errors, any handling required is in job or callback
 				.finally(() => {
 					delete this._callbacks[job.getUuid()];