airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [airavata] branch develop updated: Add all tasks' jobs to resulting job list
Date Tue, 18 Sep 2018 21:08:42 GMT
This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 100f761  Add all tasks' jobs to resulting job list
100f761 is described below

commit 100f761cd0248de47279cee9eb25ddb1e1354e47
Author: Marcus Christie <machristie@apache.org>
AuthorDate: Tue Sep 18 17:07:59 2018 -0400

    Add all tasks' jobs to resulting job list
---
 .../airavata/registry/api/service/handler/RegistryServerHandler.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
index df8dd34..499dca7 100644
--- a/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
+++ b/modules/registry/registry-server/registry-api-service/src/main/java/org/apache/airavata/registry/api/service/handler/RegistryServerHandler.java
@@ -1120,7 +1120,8 @@ public class RegistryServerHandler implements RegistryService.Iface
{
                     if (tasks != null && !tasks.isEmpty()){
                         for (TaskModel taskModel : tasks){
                             String taskId =  taskModel.getTaskId();
-                            jobList = jobRepository.getJobList(Constants.FieldConstants.JobConstants.TASK_ID,
taskId);
+                            List<JobModel> taskJobs = jobRepository.getJobList(Constants.FieldConstants.JobConstants.TASK_ID,
taskId);
+                            jobList.addAll(taskJobs);
                         }
                     }
                 }


Mime
View raw message