diff --git a/CHANGELOG.md b/CHANGELOG.md index 094c2af9..9375276c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - Add check for ContributeAndFinalize in `ReplicatesService`. (#576 #582) - Add `running2Finalized2Completed` in `TaskUpdateManager`. (#577 #578) - Disable `contributeAndFinalize` with CallBack. (#579 #581) +- Add purge cached task descriptions ability. (#587) ### Bug Fixes - Prevent race condition on replicate update. (#568) ### Quality @@ -20,7 +21,7 @@ All notable changes to this project will be documented in this file. - Rearrange checks order to avoid call to database. (#585) ### Dependency Upgrades - Upgrade to `iexec-common` 8.1.0-NEXT-SNAPSHOT. (#571 #575 #586) -- Add new `iexec-commons-poco` 2.0.0 dependency. (#571 #574 #586) +- Add new `iexec-commons-poco` 2.0.1 dependency. (#571 #574 #586 #587) ## [[8.0.1]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v8.0.1) 2023-03-20 diff --git a/gradle.properties b/gradle.properties index c85b2e2d..92010b36 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,6 +1,6 @@ version=8.0.1 iexecCommonVersion=8.1.0-NEXT-SNAPSHOT -iexecCommonsPocoVersion=2.0.0 +iexecCommonsPocoVersion=2.0.1 iexecBlockchainAdapterVersion=8.0.1-NEXT-SNAPSHOT iexecResultVersion=8.0.0-NEXT-SNAPSHOT iexecSmsVersion=8.0.0-NEXT-SNAPSHOT diff --git a/src/main/java/com/iexec/core/chain/IexecHubService.java b/src/main/java/com/iexec/core/chain/IexecHubService.java index 94b582fc..aee5172b 100644 --- a/src/main/java/com/iexec/core/chain/IexecHubService.java +++ b/src/main/java/com/iexec/core/chain/IexecHubService.java @@ -16,6 +16,7 @@ package com.iexec.core.chain; +import com.iexec.common.lifecycle.purge.Purgeable; import com.iexec.commons.poco.chain.*; import com.iexec.commons.poco.contract.generated.IexecHubContract; import io.reactivex.Flowable; @@ -37,7 +38,7 @@ @Slf4j @Service -public class IexecHubService extends IexecHubAbstractService { +public class IexecHubService extends IexecHubAbstractService implements Purgeable { private final ThreadPoolExecutor executor; private final CredentialsService credentialsService; @@ -247,4 +248,13 @@ private ChainReceipt buildChainReceipt(TransactionReceipt receipt) { .build(); } + @Override + public boolean purgeTask(String chainTaskId) { + return super.purgeTask(chainTaskId); + } + + @Override + public void purgeAllTasksData() { + super.purgeAllTasksData(); + } }