Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GearmanJob throwing exception #3

Closed
anjorinjnr opened this issue Apr 22, 2014 · 6 comments
Closed

GearmanJob throwing exception #3

anjorinjnr opened this issue Apr 22, 2014 · 6 comments

Comments

@anjorinjnr
Copy link

I get this error every time I try to add a job to the the Gearman queue

production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Class 'Whoops\Example\Exception' not found' in /Applications/XAMPP/xamppfiles/htdocs/examprep/vendor/pafelin/gearman/src/Pafelin/Gearman/Jobs/GearmanJob.php:47

@whobutsb
Copy link

I'm getting this same error as well.

@whobutsb
Copy link

So on the lines 43, 47, and 51. If you add a backslash in front of Exception that will fix the error. Like so:

throw new \Exception('No delay is suported');

@anjorinjnr
Copy link
Author

Thanks.

@anjorinjnr
Copy link
Author

I am still getting an error, something about no delay is supported

[2014-04-24 00:46:54] production.ERROR: exception 'Exception' with message 'No delay is suported' in /Applications/XAMPP/xamppfiles/htdocs/examprep/vendor/pafelin/gearman/src/Pafelin/Gearman/Jobs/GearmanJob.php:47

@pafelin
Copy link
Owner

pafelin commented Apr 24, 2014

All of your jobs should not use the delay. I will now fix the problem with the namespaces

@pafelin
Copy link
Owner

pafelin commented Apr 24, 2014

ok the exceptions now use the default Exception class. @anjorinjnr you probably try to add a task with a delay. Probably you use:

Queue::later

This is supported in beanstalkd but in gearman we cannot use it.

@pafelin pafelin closed this as completed Apr 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants