I setup the Laravel job last night, and it was working perfectly. I slept and woke up and it stopped working.
Last night, when I added a var_dump("X") in handle() and run php artisan queue:listen database command, (and then trigger the job with dispatch(new UpdateCatalogJob()); ) , it was logging X in console continuously.
Now I try the same flow, and it logs nothing. Instead, it calls __construct() but not the handle() of the Job.
Does it have a time-out or something? How can I activate it again?
Please note that I use database as queue driver
Tidy snippet:
-
First,
php artisan queue:listen database -
I call
dispatch(new UpdateCatalogJob()); -
Before it was going into the
handle()in job; but it doesn't now -
Added
var_dump("X")on__construct()to test, it gets called
via senty