Skip to content

GearmanClient::do*('namespace.name', '') error #113

@orolyn

Description

@orolyn

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions