Commit 87a535bc authored by Ivan Tyagov's avatar Ivan Tyagov

Make max wait period configurable from outside script.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27225 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 66d588b0
...@@ -56,15 +56,13 @@ ...@@ -56,15 +56,13 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
"""\n """\n
We wait until all activities are finished\n We wait until all activities are finished\n
\n \n
RuntimeError is raised in case there is no way\n RuntimeError is raised in case there is no way\n
to finish activities.\n to finish activities.\n
"""\n """\n
\n
\n
from Products.ERP5Type.Utils import sleep\n from Products.ERP5Type.Utils import sleep\n
count = 1000\n \n
while len(context.portal_activities.getMessageList()) > 0:\n while len(context.portal_activities.getMessageList()) > 0:\n
context.portal_activities.process_timer(0, 0)\n context.portal_activities.process_timer(0, 0)\n
count -= 1\n count -= 1\n
...@@ -85,7 +83,7 @@ return \'Done.\'\n ...@@ -85,7 +83,7 @@ return \'Done.\'\n
</item> </item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string>count = 1000</string> </value>
</item> </item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
...@@ -105,15 +103,15 @@ return \'Done.\'\n ...@@ -105,15 +103,15 @@ return \'Done.\'\n
<dictionary> <dictionary>
<item> <item>
<key> <string>co_argcount</string> </key> <key> <string>co_argcount</string> </key>
<value> <int>0</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>Products.ERP5Type.Utils</string> <string>Products.ERP5Type.Utils</string>
<string>sleep</string> <string>sleep</string>
<string>count</string>
<string>len</string> <string>len</string>
<string>_getattr_</string> <string>_getattr_</string>
<string>context</string> <string>context</string>
...@@ -130,7 +128,9 @@ return \'Done.\'\n ...@@ -130,7 +128,9 @@ return \'Done.\'\n
<item> <item>
<key> <string>func_defaults</string> </key> <key> <string>func_defaults</string> </key>
<value> <value>
<none/> <tuple>
<int>1000</int>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
9 10
\ 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