Commit e9a5f009 authored by Aurel's avatar Aurel

2006-11-02 aurel

* Call sleep while waiting for activities thus we  reduce cpu and mysql usage to let activities run

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11062 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b78b631c
......@@ -70,10 +70,12 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.Utils import sleep\n
count = 1000\n
while len(context.portal_activities.getMessageList()) > 0:\n
context.portal_activities.process_timer(0, 0)\n
count -= 1\n
sleep()\n
if count < 0:\n
raise RuntimeError, \'tic is endless\'\n
\n
......@@ -128,6 +130,8 @@ return \'Done.\'\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Products.ERP5Type.Utils</string>
<string>sleep</string>
<string>count</string>
<string>len</string>
<string>_getattr_</string>
......
......@@ -70,10 +70,12 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
from Products.ERP5Type.Utils import sleep\n
count = 1000\n
while len(context.portal_activities.getMessageList()) > 0:\n
context.portal_activities.process_timer(0, 0)\n
count -= 1\n
sleep()\n
if count < 0:\n
raise RuntimeError, \'tic is endless\'\n
\n
......@@ -128,6 +130,8 @@ return \'Done.\'\n
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>Products.ERP5Type.Utils</string>
<string>sleep</string>
<string>count</string>
<string>len</string>
<string>_getattr_</string>
......
2006-11-02 aurel
* Call sleep while waiting for activities thus we reduce cpu and mysql usage to let activities run
2006-09-15 Kevin
* Add new test to check that redirections triggered by the listbox are ok.
......
112
\ No newline at end of file
117
\ 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