You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2018/01/25 22:09:38 UTC

[airavata-django-portal] 05/06: AIRAVATA-2615 poll for updates to experiment

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit f32c54fbe0e0670cc395ed57af898c4dd7924902
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Thu Jan 25 15:56:16 2018 -0500

    AIRAVATA-2615 poll for updates to experiment
---
 .../js/components/experiment/ExperimentSummary.vue       | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
index 997759b..77c7535 100644
--- a/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
+++ b/django_airavata/apps/workspace/static/django_airavata_workspace/js/components/experiment/ExperimentSummary.vue
@@ -141,9 +141,25 @@ export default {
         }
     },
     methods: {
+        loadExperiment: function() {
+            return services.FullExperimentService.get(this.localFullExperiment.experiment.experimentId)
+                .then(exp => this.localFullExperiment = exp);
+        },
+        initPollingExperiment: function() {
+            var pollExperiment = function() {
+                this.loadExperiment()
+                    .then(exp => {
+                        setTimeout(pollExperiment.bind(this), 3000);
+                    })
+            }.bind(this);
+            setTimeout(pollExperiment, 3000);
+        }
     },
     watch: {
     },
+    mounted: function() {
+        this.initPollingExperiment();
+    }
 }
 </script>
 

-- 
To stop receiving notification emails like this one, please contact
machristie@apache.org.