Using a MogileFS::Client from Gearman::Worker

Sebastian Willert willert at
Tue Mar 11 13:44:21 UTC 2008

Hi folks,

I've been playing around with Gearman and MogileFS for the last few days
and up until now, they been doing everything I ever dreamed of. The only
problem that I encountered, and unfortunately this is a show-stopper for
me, is that I wasn't able to create or access a MogileFS::Client from
within a worker. MogileFS::Client->new just blocks indefinitely. My
(uneducated) guess is that they both use the same event queue and thus
starve each other.

Is it generally possible to use Gearman and MogileFS together? What do I
have to consider while doing so? Currently I am starting workers as
Daemon::Generic subclasses, maybe this is the culprit here, but before
investing more work, I'd like to know that I am at least running in the
right direction.

  Sebastian Willert

More information about the Gearman mailing list