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 07:57:52 UTC
[sling-org-apache-sling-distribution-core] branch SLING-10743
created (now a38a9e3)
This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a change to branch SLING-10743
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-core.git.
at a38a9e3 SLING-10743 - Run the package cleanup task on a single instance in a cluster
This branch includes the following new commits:
new a38a9e3 SLING-10743 - Run the package cleanup task on a single instance in a cluster
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[sling-org-apache-sling-distribution-core] 01/01: SLING-10743 - Run
the package cleanup task on a single instance in a cluster
Posted by tm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
tmaret pushed a commit to branch SLING-10743
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-core.git
commit a38a9e36201843f8d2015a6b8f6d595fda60baa3
Author: tmaret <tm...@adobe.com>
AuthorDate: Thu Aug 19 09:57:36 2021 +0200
SLING-10743 - Run the package cleanup task on a single instance in a cluster
---
.../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..cc4af1b 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_LEADER);
packageCleanup = context.registerService(Runnable.class, cleanup, props);
wrapped = resourceDistributionPackageBuilder;
}