Commit 20995306 authored by Sebastien Robin's avatar Sebastien Robin

my change was a bit aggressive, I should lower the number retry instead of setting it to 0


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@5772 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dab135ca
...@@ -8,13 +8,16 @@ class_name: ...@@ -8,13 +8,16 @@ class_name:
class_file: class_file:
</dtml-comment> </dtml-comment>
<params>delay <params>delay
processing_node</params> processing_node
retry</params>
UPDATE UPDATE
message message
SET SET
date = DATE_SUB(date, INTERVAL <dtml-sqlvar delay type="int"> SECOND), date = DATE_SUB(date, INTERVAL <dtml-sqlvar delay type="int"> SECOND),
processing_date = DATE_SUB(processing_date, INTERVAL <dtml-sqlvar delay type="int"> SECOND), processing_date = DATE_SUB(processing_date, INTERVAL <dtml-sqlvar delay type="int"> SECOND),
retry = 0 <dtml-if retry>
retry = GREATEST(retry,<dtml-sqlvar retry type="int">) - <dtml-sqlvar retry type="int">
</dtml-if>
WHERE WHERE
1 = 1 1 = 1
<dtml-if processing_node> <dtml-if processing_node>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment