-
Notifications
You must be signed in to change notification settings - Fork 104
Open
Description
When sending a job without a workload, or a workload with the default value of empty string, this error occurs:
Warning: GearmanClient::doNormal(): add_task(GEARMAN_INVALID_ARGUMENT) invalid workload -> libgearman/add.cc:199
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:
$params = empty($params) ? 0 : $params;
Metadata
Metadata
Assignees
Labels
No labels