From 5b7b9605f6e6720a0f3d8aea52563b48f98434a5 Mon Sep 17 00:00:00 2001 From: Zied Date: Thu, 7 Nov 2019 15:27:56 +0100 Subject: [PATCH] Free worker up from task after contribution timeout --- src/main/java/com/iexec/core/task/listener/TaskListeners.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/iexec/core/task/listener/TaskListeners.java b/src/main/java/com/iexec/core/task/listener/TaskListeners.java index 1f38db785..6dbb9c226 100644 --- a/src/main/java/com/iexec/core/task/listener/TaskListeners.java +++ b/src/main/java/com/iexec/core/task/listener/TaskListeners.java @@ -52,6 +52,7 @@ public void onTaskContributionTimeout(ContributionTimeoutEvent event) { List workerAddresses = new ArrayList<>(); for (Replicate replicate : replicatesService.getReplicates(chainTaskId)) { workerAddresses.add(replicate.getWalletAddress()); + workerService.removeChainTaskIdFromWorker(chainTaskId, replicate.getWalletAddress()); } notificationService.sendTaskNotification(TaskNotification.builder()