I am moving away from GearmanManager. It is just too unwieldy to use. I agree that pcntl_fork causes a lot of problems.

The way I solved it is to use bootstrap in the actual worker function. This is slow and resource intensive. I am working on a custom manager using Lorna’s method of handling the database connections.