You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (JIRA)" <ji...@apache.org> on 2016/11/07 20:52:58 UTC
[jira] [Commented] (AIRAVATA-2212) Experiment Auto Refresh may try
to reload the page while reloading the page
[ https://issues.apache.org/jira/browse/AIRAVATA-2212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15645418#comment-15645418 ]
Marcus Christie commented on AIRAVATA-2212:
-------------------------------------------
h3. Proposed solution
* instead of {{setInterval}}, use {{setTimeout}} but only call it after the Ajax request finishes, so that the experiment status is checked AT MOST once every 3 seconds
* stop checking once experiment status change is detected
Bonus points:
* would be nice if the experiment auto refreshed when job status changed as well
> Experiment Auto Refresh may try to reload the page while reloading the page
> ---------------------------------------------------------------------------
>
> Key: AIRAVATA-2212
> URL: https://issues.apache.org/jira/browse/AIRAVATA-2212
> Project: Airavata
> Issue Type: Bug
> Reporter: Marcus Christie
> Assignee: Marcus Christie
>
> The Experiment Auto Refresh feature has a bug that occurs when it takes more than about 3 seconds to load the experiment summary. Experiment Auto Refresh runs an Ajax request every 3 seconds to check to see if the experiment status has changed. If the experiment status has changed it tries to reload the page. However, it keeps checking every 3 seconds and it is possible for the summary page to
> * check to see if the experiment status has changed
> * start reloading the page
> * check a second time to see if the experiment status has changed
> * start reloading the page a second time
> * etc.
> For [~eroma_a] the summary page basically got stuck in this loop and never refreshed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)