[Erp5-report] r17815 - /erp5/trunk/products/CMFActivity/Activity/SQLQueue.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 27 12:02:39 CET 2007


Author: seb
Date: Tue Nov 27 12:02:37 2007
New Revision: 17815

URL: http://svn.erp5.org?rev=17815&view=rev
Log:
- found a possible way where a message was processed but a
  failure occured a commit time. So this ended by deleted
  a message wich was not really processed because not commited.

Modified:
    erp5/trunk/products/CMFActivity/Activity/SQLQueue.py

Modified: erp5/trunk/products/CMFActivity/Activity/SQLQueue.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/Activity/SQLQueue.py?rev=17815&r1=17814&r2=17815&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/Activity/SQLQueue.py (original)
+++ erp5/trunk/products/CMFActivity/Activity/SQLQueue.py Tue Nov 27 12:02:37 2007
@@ -268,6 +268,10 @@
           # same "try" block.
           get_transaction().commit()
         except:
+          # We must make sure that the message is not set as executed.
+          # It is possible that the message is executed but the commit
+          # of the transaction fails
+          value[1].is_executed = 0
           LOG('SQLQueue', WARNING, 'Exception raised when invoking message (uid, path, method_id) %r' % (value, ), error=sys.exc_info())
           try:
             makeMessageListAvailable([value[0]])




More information about the Erp5-report mailing list