Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

getting exception when trying to run worker #5

Open
tatanasova opened this issue Aug 19, 2014 · 0 comments
Open

getting exception when trying to run worker #5

tatanasova opened this issue Aug 19, 2014 · 0 comments

Comments

@tatanasova
Copy link

Following your example for worker:

$serviceMananger = $this->getServiceLocator();
$gearmanW = $serviceMananger->get('mwGearman\Worker\Pecl');
$gearmanW->register('myJob8', array('Listuploads\Model\SubscribeJob','execute'));
$gearmanW->connect();

while($gearmanW->work());

when I run worker this is what I get:

PHP Warning: Illegal offset type in isset or empty in /Library/WebServer/Documents/subcenter/vendor/mwillbanks/mw-gearman/src/mwGearman/Worker/Pecl.php on line 174
PHP Warning: Illegal offset type in /Library/WebServer/Documents/subcenter/vendor/mwillbanks/mw-gearman/src/mwGearman/Worker/Pecl.php on line 175
PHP Fatal error: Call to a member function addServers() on a non-object in /Library/WebServer/Documents/subcenter/vendor/mwillbanks/mw-gearman/src/mwGearman/Worker/Pecl.php on line 119

Just for clarification, using directly the pecl gearman functions works ok.

What am I doing wrong? Thank you for your time and for writing this :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant