[ap4r-devel] [ ap4r-Patches-18900 ] added retry delay
noreply at rubyforge.org
noreply at rubyforge.org
Mon Mar 17 16:31:54 EDT 2008
Patches item #18900, was opened at 2008-03-17 15:31
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=6912&aid=18900&group_id=1765
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: dave farkas (sakrafd)
Assigned to: Nobody (None)
Summary: added retry delay
Initial Comment:
I added onto Pawel's patch #14722 the ability to incorporate a retry delay when a message fails by sending a retry_delay parameter in the queue headers section. If the retry_delay parameter is not given, ap4r will process failed messages immediately, which is old behaviour.
Example: This will try to process the message once every five minutes for a maximum of ten tries or until an hour has passed (whichever comes first).
ap4r.transaction do
ap4r.async_to(ws_info, {:dispatch_mode => :SOAP,
:queue_name => queue.message.in,
:delivery => :repeated,
:expires => 3600,
:max_deliveries=> 10,
:priority => 1,
:retry_delay => 600}, queue_info)
end
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=6912&aid=18900&group_id=1765
More information about the ap4r-devel
mailing list