From: Mateusz Warowny Date: Fri, 2 Jun 2023 13:08:42 +0000 (+0200) Subject: JAL-3954 Do not retrieve alignment for failed jobs X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2FJAL-3954-ebi-phmmer;p=jalview.git JAL-3954 Do not retrieve alignment for failed jobs --- diff --git a/src/jalview/ws2/actions/hmmer/PhmmerTask.java b/src/jalview/ws2/actions/hmmer/PhmmerTask.java index e077b61..8a7a826 100644 --- a/src/jalview/ws2/actions/hmmer/PhmmerTask.java +++ b/src/jalview/ws2/actions/hmmer/PhmmerTask.java @@ -61,8 +61,11 @@ class PhmmerTask extends AbstractPollableTask protected AlignmentI done() throws IOException { var job = getSubJobs().get(0); + var status = job.getStatus(); Console.info(String.format("phmmer finished job \"%s\" with status %s", - job.getServerJob().getJobId(), job.getStatus())); + job.getServerJob().getJobId(), status)); + if (status != JobStatus.COMPLETED) + return null; var outputAlignment = client.getAlignment(job.getServerJob()); var querySeq = job.getInputSequences().get(0).deriveSequence(); {