Commit 9a3352ea authored by Rafael Monnerat's avatar Rafael Monnerat

Revert Previous change, process_timer uses a lock which prevents conflicts or multiple runs.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36371 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f051d3c4
...@@ -64,7 +64,6 @@ ...@@ -64,7 +64,6 @@
from Products.ERP5Type.Utils import sleep\n from Products.ERP5Type.Utils import sleep\n
count = int(count)\n count = int(count)\n
while len(context.portal_activities.getMessageList()) > 0:\n while len(context.portal_activities.getMessageList()) > 0:\n
if invoke == 1:\n
context.portal_activities.process_timer(0, 0)\n context.portal_activities.process_timer(0, 0)\n
count -= 1\n count -= 1\n
sleep(t=1)\n sleep(t=1)\n
...@@ -84,7 +83,7 @@ return \'Done.\'\n ...@@ -84,7 +83,7 @@ return \'Done.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>count = 1000, invoke=1</string> </value> <value> <string>count = 1000</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -104,14 +103,13 @@ return \'Done.\'\n ...@@ -104,14 +103,13 @@ return \'Done.\'\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>2</int> </value> <value> <int>1</int> </value>
</item> </item>
<item> <item>
<key> <string>co_varnames</string> </key> <key> <string>co_varnames</string> </key>
<value> <value>
<tuple> <tuple>
<string>count</string> <string>count</string>
<string>invoke</string>
<string>Products.ERP5Type.Utils</string> <string>Products.ERP5Type.Utils</string>
<string>sleep</string> <string>sleep</string>
<string>int</string> <string>int</string>
...@@ -133,7 +131,6 @@ return \'Done.\'\n ...@@ -133,7 +131,6 @@ return \'Done.\'\n
<value> <value>
<tuple> <tuple>
<int>1000</int> <int>1000</int>
<int>1</int>
</tuple> </tuple>
</value> </value>
</item> </item>
......
30 31
\ No newline at end of file \ No newline at end of file
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