laravel-job-status icon indicating copy to clipboard operation
laravel-job-status copied to clipboard

Job status stays as 'queued' when dispatch fails

Open alexking opened this issue 6 years ago • 2 comments

When dispatching a job fails because of a missing connection, a record remains in the jobs table with the status of queued. This can be handled manually by wrapping each dispatch in a try...catch block and updating the record manually, but ideally this case should be handled by the library.

alexking avatar Feb 04 '19 23:02 alexking

The same is true when dispatching fails due to duplication via the ShouldBeUnique trait. If I execute my unique job several times, I get one job record in the database and several status records.

oobi avatar May 04 '21 04:05 oobi

Hi @imTigger is this going to be fixed? @alexking Do you mind to share what's inside the catch that you handle the exception? What did you update to the record? I am experiencing the same issues. It's just so random and when it happens, it's everywhere.

yientau avatar Dec 25 '23 10:12 yientau