From: Mateusz Warowny Date: Tue, 19 Oct 2021 13:31:31 +0000 (+0200) Subject: JAL-3878 Set job status to cancelled on job cancellation. X-Git-Url: http://source.jalview.org/gitweb/?p=jalview.git;a=commitdiff_plain;h=86b7e99a7fc756a8e08ec0e5fb4e33b0f0e9941f JAL-3878 Set job status to cancelled on job cancellation. Despite job cancellation not being implemented in slivka client, the job status should be updated to cancelled for the event to be emitted to the ui updater. --- diff --git a/src/jalview/ws2/slivka/SlivkaWebService.java b/src/jalview/ws2/slivka/SlivkaWebService.java index 82a2ba9..5da7be3 100644 --- a/src/jalview/ws2/slivka/SlivkaWebService.java +++ b/src/jalview/ws2/slivka/SlivkaWebService.java @@ -216,6 +216,7 @@ public class SlivkaWebService implements WebServiceI @Override public void cancel(WSJob job) throws IOException { + job.setStatus(WSJobStatus.CANCELLED); Cache.log.warn("Slivka does not support job cancellation yet."); }