You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs say to not catch exceptions and fail fast when processing messages, however, if an exception occurs within a running job, things do not properly clean up and jobs are left in a "enqueue.job_queue.status.running" state. You are also no longer able to execute a job with the same name again because it is stuck in the "enqueue_job_unique" table (DBAL transport).
this line should be wrapped in a try/catch block, failed, and then re-throw the exception so it bubbles up to the message processor. Something similar to:
The docs say to not catch exceptions and fail fast when processing messages, however, if an exception occurs within a running job, things do not properly clean up and jobs are left in a "enqueue.job_queue.status.running" state. You are also no longer able to execute a job with the same name again because it is stuck in the "enqueue_job_unique" table (DBAL transport).
I think in
enqueue-dev/pkg/job-queue/JobRunner.php
Line 49 in e2a950c
I am not entirely familiar with the codebase so I may be missing something, but hopefully you get the right idea from my example.
The text was updated successfully, but these errors were encountered: