JAL-3878 Skip getting results of failed jobs.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 30 Sep 2021 16:26:24 +0000 (18:26 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 30 Sep 2021 16:26:24 +0000 (18:26 +0200)
src/jalview/ws2/operations/AlignmentOperation.java

index 530ea24..f72978a 100644 (file)
@@ -523,6 +523,8 @@ public class AlignmentOperation implements Operation
       Map<Long, AlignmentI> results = new LinkedHashMap<>();
       for (WSJob job : getJobs())
       {
+        if (job.getStatus().isFailed())
+          continue;
         try
         {
           AlignmentI alignment = supplier.getResult(job);