JAL-3878 Set job status to cancelled on job cancellation.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 19 Oct 2021 13:31:31 +0000 (15:31 +0200)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Tue, 19 Oct 2021 13:31:31 +0000 (15:31 +0200)
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

index 82a2ba9..5da7be3 100644 (file)
@@ -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.");
   }