Commit 966cb758 authored by Sebastien Robin's avatar Sebastien Robin

RAMQueue activities are now stored by each cmfsite, and corrected infinite loop


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e895eeb
......@@ -76,6 +76,7 @@ class RAMDict(Queue):
if m.validate(self, activity_tool):
activity_tool.invoke(m)
del self.dict[key]
get_transaction().commit()
return 0
return 1
......
......@@ -67,6 +67,7 @@ class RAMQueue(Queue):
m = self.getQueue(activity_tool)[0]
activity_tool.invoke(m)
self.deleteMessage(activity_tool, m)
get_transaction().commit()
return 0 # Keep on ticking
def hasActivity(self, activity_tool, object, **kw):
......
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