V
V
Vlad Osadchyi2020-08-27 13:09:46
Laravel
Vlad Osadchyi, 2020-08-27 13:09:46

Jobs table not updating while queue is running?

There is such a very simple Job:
https://pastebin.com/qrq1pnTV

I run:
php artisan queue:work

I get:
5f47840d3231c755797695.png

In the database:
5f47844a53881564299155.png

I can’t understand why the console displays that the tasks have been completed, but they remain in the database ... If you run more one queue handler, then tasks with id > 2300 are executed again, reserved_at is set in the database for the first task (id 2301), the rest remain with reserved_at = NULL

PHP 7.4.4
Laravel Framework 7.26.0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vlad Osadchyi, 2020-08-27
@VladOsadchyi

I found the problem, it turns out I did not close the transaction.
https://pastebin.com/NAy6Cxw5

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question