From 5d60cda87940311cfff2679e6f0e96890d3e1fd6 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Fri, 2 Jun 2023 15:08:42 +0200 Subject: [PATCH] JAL-3954 Do not retrieve alignment for failed jobs --- src/jalview/ws2/actions/hmmer/PhmmerTask.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); { -- 1.7.10.2