I ran into the similar situation where I needed apache and other services to write to the same folder. So I opted to add all necessary users to a 'filer' group, then gave rwx perms to the filer group on the folders that needed them.
mpurcell@service1 ~ $ -> id apache
uid=48(apache) gid=48(apache) groups=48(apache),507(filer),509(logger)
mpurcell@service1 ~ $ -> id mpurcell
uid=500(mpurcell) gid=502(mpurcell) groups=502(mpurcell),10(wheel),501(webdev),507(filer),509(logger)
mpurcell@service1 ~ $ -> ls /home/db/permfile/
total 12
drwxrwsr-x. 3 filer filer 4096 Feb 13 2012 .
drwxrwxr-x. 4 filer filer 4096 May 5 2012 ..
drwxrwsr-x. 6 filer filer 4096 Dec 24 00:41 app
I haven't toyed around with Gearman yet, but in your specific instance, whichever user the worker runs as as well as the gearman service, will also need to be added to the filer group.