Worker should be able to execute GRAB_JOB_UNIQ
Bug #1098816 reported by
Eric Lambert
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman Java |
Fix Released
|
High
|
Eric Lambert |
Bug Description
Currently the worker can not make GRAB_JOB_UNIQ requests to the server and instead only makes GRAB_JOB request. As such if a job has been assigned a UUID the worker will never receive the UUID as the UUID is not include in the JOB_ASSIGN packet that results from GRAB_JOB requests.
see https:/
Changed in gearman-java: | |
status: | New → In Progress |
Changed in gearman-java: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Khai:
I've pushed a fix for this. The behavior of the worker can be toggled with the setJobUniqueIdR equired( ) method. When set to true, the worker will perform GRAB_JOB_UNIQ requests against the server (which instructs the server to include the unique value, as set by the client, in the job assignment). Functions can access this value with getUniqueId().
Please let me if this solves your problem.
Eric