You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2021/08/19 10:38:32 UTC
[sling-org-apache-sling-distribution-core] branch master updated: SLING-10743 - Run the package cleanup task on a single instance in a … (#54)
This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-core.git
The following commit(s) were added to refs/heads/master by this push:
new 14eb997 SLING-10743 - Run the package cleanup task on a single instance in a … (#54)
14eb997 is described below
commit 14eb99765544be7c8132c636fc6b4ff7cb84d2ec
Author: Timothee Maret <tm...@apache.org>
AuthorDate: Thu Aug 19 12:37:56 2021 +0200
SLING-10743 - Run the package cleanup task on a single instance in a … (#54)
---
.../serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java b/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java
index 356cecd..0b561c0 100644
--- a/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java
+++ b/src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java
@@ -295,6 +295,7 @@ public class VaultDistributionPackageBuilderFactory implements DistributionPacka
Dictionary<String, Object> props = new Hashtable<String, Object>();
props.put(Scheduler.PROPERTY_SCHEDULER_CONCURRENT, false);
props.put(Scheduler.PROPERTY_SCHEDULER_PERIOD, cleanupDelay);
+ props.put(Scheduler.PROPERTY_SCHEDULER_RUN_ON, Scheduler.VALUE_RUN_ON_SINGLE);
packageCleanup = context.registerService(Runnable.class, cleanup, props);
wrapped = resourceDistributionPackageBuilder;
}