Merge branch 'alpha/JAL-3362_Jalview_212_alpha' into alpha/merge_212_JalviewJS_2112
[jalview.git] / src / jalview / ws / AWSThread.java
index 80918f9..36e51c5 100644 (file)
@@ -116,9 +116,13 @@ public abstract class AWSThread extends Thread
         {
           StartJob(jobs[j]);
         }
-
+        Cache.log.debug("Job " + jobs[j] + " is " + (jobs[j].submitted ? "submitted" : "not submitted"));
         if (jobs[j].submitted && !jobs[j].subjobComplete)
         {
+          jalview.bin.Cache.log.debug(
+              "Polling Job " + j + " Result state was:" + jobs[j].getState() + "(ServerError=" + jobs[j].isServerError()
+                  + ")"
+          );
           try
           {
             pollJob(jobs[j]);
@@ -188,7 +192,7 @@ public abstract class AWSThread extends Thread
           Cache.log.debug("Interrupted sleep waiting for next job poll.",
                   e);
         }
-        // System.out.println("I'm alive "+alTitle);
+        // System.out.println("I'm alive ?");
       }
     }
     if (jobComplete && jobs != null)
@@ -383,7 +387,7 @@ public abstract class AWSThread extends Thread
               .getCodonFrames();
       if (cf != null)
       {
-        codonframe = new ArrayList<AlignedCodonFrame>();
+        codonframe = new ArrayList<>();
         codonframe.addAll(cf);
       }
     }