I've seen this before, it was Gearman rather than beanstalkd but the principle is the same. You'll need to check if the connection is OK, and if not, reconnect. I blogged about it here https://lornajane.net/posts/2011/dealing-with-mysql-gone-away-in-zend-framework