diff --git a/modules/dcache-bulk/src/main/java/org/dcache/services/bulk/job/AbstractRequestContainerJob.java b/modules/dcache-bulk/src/main/java/org/dcache/services/bulk/job/AbstractRequestContainerJob.java index 59f8244b1c8..b3b7e778c9e 100644 --- a/modules/dcache-bulk/src/main/java/org/dcache/services/bulk/job/AbstractRequestContainerJob.java +++ b/modules/dcache-bulk/src/main/java/org/dcache/services/bulk/job/AbstractRequestContainerJob.java @@ -144,6 +144,10 @@ abstract class DirListTask implements Runnable { public void run() { try { doList(); + } catch (InterruptedException e) { + containerState = ContainerState.STOP; + target.setErrorObject(e); + update(CANCELLED); } catch (Throwable e) { errorHandler.accept(e); Throwables.throwIfUnchecked(e);