-
Notifications
You must be signed in to change notification settings - Fork 104
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
GearmanClient::do*('namespace.name', '') error #113
Comments
Not major, it may be an issue with the daemon. |
👍 but I'd like to see the gearman docs about this. BTW why was this closed? |
https://github.com/jeffreyhorner/gearman/blob/master/src/add.cc#L134 I have a feeling gearman doesn't like blank workloads, so I don't really know what can be done about it on this end. |
I personally don't like getting errors directly from the daemon like |
... or add a setting that automatically puts in a 0 for blank workloads ... |
Its tricky. I was just testing it with default values of integer 0. It worked for |
It might be worth making it a required argument.
And it goes on to test the string length of the argument, at which point it throws the error.
Or:
They look like they are doing the same thing, but are a little inconsistent. |
When sending a job without a workload, or a workload with the default value of empty string, this error occurs:
This does no happen when a workload of integer
0
is sent.This is an issue for jobs that do not require arguments.
Since the default arguments in the wrapping client is an empty string, I am assuming this is an issue related to my version of php5-gearman. Either way, is it feasible to alter the default params and prevent empty strings from being entered:
The text was updated successfully, but these errors were encountered: