mongodb / laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel (Moloquent)
https://www.mongodb.com/docs/drivers/php/laravel-mongodb/
MIT License
7.02k stars 1.43k forks source link

php artisan queue:work mongodb not working #1515

Closed wiselyku closed 6 months ago

wiselyku commented 6 years ago

hi, I use this lib for the job queue. Right now, it could add the jobs to the queue successfully. But, when i executed php artisan queue:work mongodb, i got nothing. Could you tell me what things might be wrong? Thank you very much.

wiselyku commented 6 years ago

BTW, I use version 3.3

ypavlov commented 6 years ago

hi @wiselyku, did you solve your problem? I have the same issue. I use mongodb for queues. I could add the jobs to the queue successfully, but php artisan queue:work mongodb not working

wiselyku commented 6 years ago

hi, @ypavlov i did not solve the problem, so i used mysql instead

trickyEdecay commented 4 years ago

same here. my project doesn't use any other database but only mongodb. all the dispatched job was added to queue successfully.

when i run php artisan queue:work,it print nothing,and shutdown after a while. and something like this appears in the log:

Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function beginTransaction() on null in /var/www/html/vendor/illuminate/database/Concerns/ManagesTransactions.php:109
GromNaN commented 1 year ago

https://jira.mongodb.org/browse/PHPORM-87

GromNaN commented 6 months ago

Fixed by https://github.com/mongodb/laravel-mongodb/pull/2838