azure webjobssdk - WebJob Message submittion always goes to poison queue rather than actual Queue -
we using webjob latest sdk our web job, see weird behavior time our queue messages goes poison queue rather actual queue. don't find error in webjob dashboard also. has 1 faced kind of issue.
public async static task processqueuemessage( [queuetrigger("%queuename%")] parameter message, int dequeuecount, textwriter log ) { try { //read parameters //perform db operation last 2-5 mins } catch { } } public static void bindtopoisonqueue( [queuetrigger("queuename-poison")] parameter message, textwriter log ) { log.write("problem message: " + message); }
i don't find issue code, not sure why messages automatically redirected poison queue instead of actual queue.
the sdk moves message poison queue if has failed processing number of times greater retry count configured via jobhostqueuesconfiguration.maxdequeuecount. check message details - might message body failing deserialize parameter poco type.
also, please recheck dashboard - each time function fails, you'll "failed" entry details. verified myself, in case function fails because message fails deserialization.
Comments
Post a Comment