You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2017/05/15 20:58:39 UTC

[4/4] airavata-php-gateway git commit: minor modification to the existing node/cpu/wall time code

minor modification to the existing node/cpu/wall time code


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/8693429f
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/8693429f
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/8693429f

Branch: refs/heads/develop
Commit: 8693429f8db3eda132228c068496ffa2eb9e1e05
Parents: badb6a8
Author: scnakandala <su...@gmail.com>
Authored: Mon May 15 16:56:32 2017 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Mon May 15 16:56:32 2017 -0400

----------------------------------------------------------------------
 app/controllers/ExperimentController.php | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/8693429f/app/controllers/ExperimentController.php
----------------------------------------------------------------------
diff --git a/app/controllers/ExperimentController.php b/app/controllers/ExperimentController.php
index bd214bf..fc29584 100755
--- a/app/controllers/ExperimentController.php
+++ b/app/controllers/ExperimentController.php
@@ -37,10 +37,15 @@ class ExperimentController extends BaseController
             Session::put('exp_create_continue', true);
 
             $computeResources = CRUtilities::create_compute_resources_select($_POST['application'], null);
+
+            $nodeCount = Config::get('pga_config.airavata')["node-count"];
+            $cpuCount = Config::get('pga_config.airavata')["total-cpu-count"];
+            $wallTimeLimit = Config::get('pga_config.airavata')["wall-time-limit"];
+
             $queueDefaults = array("queueName" => Config::get('pga_config.airavata')["queue-name"],
-                "nodeCount" => Config::get('pga_config.airavata')["node-count"],
-                "cpuCount" => Config::get('pga_config.airavata')["total-cpu-count"],
-                "wallTimeLimit" => Config::get('pga_config.airavata')["wall-time-limit"]
+                "nodeCount" => $nodeCount,
+                "cpuCount" => $cpuCount,
+                "wallTimeLimit" => $wallTimeLimit
             );