We have an sms job that gets fired for each sms that needs to be sent, so if we have 100 sms we schedule 100 jobs to allow for single and multiple sms's.
When we send the sms campaign it uses a 3rd party rest service to send the sms's, we sent a campaign of 7500 sms's, so there are 7500 jobs in the queue as soon as it sent 151 sms's we start getting
[2020-10-28 15:41:16] production.ERROR: Serialization of 'Doctrine\DBAL\Driver\PDOConnection' is not allowed {"exception":"[object] (Exception(code: 0): Serialization of 'Doctrine\DBAL\Driver\PDOConnection' is not allowed at /home/site/releases/20201026103626/vendor/laravel/framework/src/Illuminate/Queue/Queue.php:139)
for all the rest of the sms's Not sure why this is happening.
We use laravel queues with the database (mysql) connection, all the rest of the sites on that server works fine, does not seem to lose connection to the database (when browsing the site while the queues are running) The database server is a separate server dedicated for mysql.