Closed Hodgy closed 8 years ago
Thanks for this @Hodgy
We're not quite on 5.3 yet at my job but it's something I'll be doing next week and I can have a play with this then.
I think I'd want to split into a 5.2 support branch and a 5.3 branch. @driesvints also had a proposal (/working solution?) that might turn out better for avoiding breaking changes in Laravel.
Hop on the Laravel-Doctrine slack if you want to chat.
No worries, this library came to our rescue last week so figured I would try and give something back :D
Ahh, if there is a way to avoid the breaking changes makes sense to go that route.
Ill be on the slack as soon as the invite arrives in my email.
So what I currently do is listening to the Illuminate\Queue\Events\JobProcessing
event and reconnecting the DB connection if no connection is available. That way you're sure to have a DB connection when your queue job runs.
Just a FYI: Max's library does a lot more than my solution so if you're experiencing memory problems and want better handling of exceptions in your queue jobs, definitely go for this library. We might switch to it as well at some point.
Re-created this to 0.2-dev branch see #3
Updated the library to support Laravel 5.3.
All the tests are passing and the codesniffer has been run.
I haven't been able to test it against my app yet as the 5.3 upgrade hasn't been simple. Ill try and get a basic app setup over the next few days to test it against. Unless you have one you can check it against?
This will break backwards compatibility.