airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [2/4] airavata-php-gateway git commit: Commented out get job status logic in ExperimentUtilities, need to update
Date Mon, 20 Jul 2015 20:40:26 GMT
Commented out get job status logic in ExperimentUtilities, need to update


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/6e8c5fc2
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/6e8c5fc2
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/6e8c5fc2

Branch: refs/heads/master
Commit: 6e8c5fc2b1e1b755d6a7b99d40857bc10939974f
Parents: cf662a9
Author: Shameera Rathnayaka <shameerainfo@gmail.com>
Authored: Mon Jul 20 16:26:12 2015 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Mon Jul 20 16:26:12 2015 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/6e8c5fc2/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 676db0a..43696cc 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -666,16 +666,17 @@ class ExperimentUtilities
      * @param $experiment
      * @return null
      */
-    public static function get_job_status(Experiment $experiment)
+    public static function get_job_status(ExperimentModel $experiment)
     {
         //$jobStatus = Airavata::getJobStatuses($experiment->experimentID);
-        if(!empty($experiment->workflowNodeDetailsList)){
+        //TODO - implement following logic with new data model.
+/*        if(!empty($experiment->workflowNodeDetailsList)){
             if(!empty($experiment->workflowNodeDetailsList[0]->taskDetailsList)){
                 if(!empty($experiment->workflowNodeDetailsList[0]->taskDetailsList[0]->jobDetailsList)){
                     $jobStatus = $experiment->workflowNodeDetailsList[0]->taskDetailsList[0]->jobDetailsList[0]->jobStatus;
                 }
             }
-        }
+        }*/
         if (isset($jobStatus)) {
             $jobState = JobState::$__names[$jobStatus->jobState];
         } else {


Mime
View raw message