Commit ebcac51d authored by Romain Courteaud's avatar Romain Courteaud

Do not hammer the server.

Do not kill the client browser.

Sleep is bad, but better than destroying all components.
parent 7a321a04
...@@ -79,16 +79,21 @@ ...@@ -79,16 +79,21 @@
<td>hosting_subscription_url</td>\n <td>hosting_subscription_url</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n
<td>echo</td>\n
<td>${hosting_subscription_url}</td>\n
<td></td>\n
</tr>\n
<!--\n <!--\n
Unfortunately there is currently now way to do good client-server waiting for reindexation\n Unfortunately there is currently now way to do good client-server waiting for reindexation\n
of Software Instance, so just wait 10s.\n of Software Instance, so just wait 60s.\n
\n \n
It shall be maximum of reindexation.\n It shall be maximum of reindexation.\n
\n \n
-->\n -->\n
<tr>\n <tr>\n
<td>pause</td>\n <td>pause</td>\n
<td>10000</td>\n <td>60000</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n \n
...@@ -126,13 +131,18 @@ It shall be maximum of reindexation.\n ...@@ -126,13 +131,18 @@ It shall be maximum of reindexation.\n
\n \n
<!-- Hackish, but there is no other way to fetch software instance status -->\n <!-- Hackish, but there is no other way to fetch software instance status -->\n
<!-- XXX: It is hammering server, needs to make it a bit nicer -->\n <!-- XXX: It is hammering server, needs to make it a bit nicer -->\n
<tr>\n <!--tr>\n
<td>waitForCondition</td>\n <td>waitForCondition</td>\n
<td>new\n <td>new\n
Ajax.Request(\'${software_instance_path}/SoftwareInstance_getStatus\',\n Ajax.Request(\'${software_instance_path}/SoftwareInstance_getStatus\',\n
{asynchronous: false}).transport.responseText === "Started"; var i;\n {asynchronous: false}).transport.responseText === "Started"; var i;\n
for (i = 0; i < 10000000; i++) { };</td>\n for (i = 0; i < 10000000; i++) { };</td>\n
<td>600000</td>\n <td>600000</td>\n
</tr-->\n
<tr>\n
<td>pause</td>\n
<td>1200000</td>\n
<td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
......
14 15
\ 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