0

I am trying to debug a bug where the application is sending the SMS twice than it supposed to. I am suspecting, it is something to do with the Queue.

Now, everytime I cleared my queue on Redis, it get fills up again with old jobs. I cleared everything in failed_jobs table, but it still happens.

Where all these queued jobs are possibly coming from besides the failed_jobs table?

geckob
  • 7,680
  • 5
  • 30
  • 39
  • check your code – Abdellah Chadidi May 11 '17 at 03:58
  • @ChadidiAbdellah I don't think its coming from the code. Because, all is old jobs – geckob May 11 '17 at 04:04
  • first stop your Command which normally execute jobs (eg: `php artisan queue:listen` or `queue:work`) because, if you have failed jobs, it adding up again and again to re-attempt the job. So 1st stop execution, then clear the table – Qazi May 11 '17 at 04:27
  • Check your Job classes. Possibly they crash after the SMS has been sent successfully. Any error at any time will cause the job to 'fail'. – JJWesterkamp May 11 '17 at 07:25

0 Answers0