WORK_EXCEPTION never forwarded to client
Bug #405732 reported by
Kim Altintop
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Gearman |
Invalid
|
Undecided
|
Eric Day |
Bug Description
Setting the "exceptions" option does not have any effect -- worker exceptions are never forwarded to the client. We figured it's a threading bug (server_
Please have a look at http://
Of course, this is just a workaround but illustrates where things go wrong.
To post a comment you must log in.
Hi! This is actually not a bug, this is the desired behavior. In order for clients to get exceptions, the client must send a OPTION_REQ packet with the "exceptions" option. This is currently deprecated and provided by the job server only for backwards compatibility with the Perl server. If you would like to send and receive exceptions, consider using a combination of WORK_WARNING and WORK_FAIL messages, since these will be a bit more portable. The protocol document describes this behavior:
http:// gearman. org/index. php?id= protocol