From 86b7e99a7fc756a8e08ec0e5fb4e33b0f0e9941f Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Tue, 19 Oct 2021 15:31:31 +0200 Subject: [PATCH] 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. --- src/jalview/ws2/slivka/SlivkaWebService.java | 1 + 1 file changed, 1 insertion(+) 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."); } -- 1.7.10.2