Description
In the BullMQ worker's failed event handler, the job parameter can be undefined according to BullMQ types. The current implementation accesses job.id without checking if job is defined, which could cause a runtime error.
Location: backend/worker/analysis.worker.js, lines 72-74
Context
This issue was identified during code review and deferred for a follow-up PR.
Related PR: #28
Review Comment: #28 (comment)
Requested by: @yb175
Description
In the BullMQ worker's failed event handler, the
jobparameter can beundefinedaccording to BullMQ types. The current implementation accessesjob.idwithout checking ifjobis defined, which could cause a runtime error.Location:
backend/worker/analysis.worker.js, lines 72-74Context
This issue was identified during code review and deferred for a follow-up PR.
Related PR: #28
Review Comment: #28 (comment)
Requested by: @yb175