You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2021/08/19 08:02:23 UTC

[GitHub] [sling-org-apache-sling-distribution-core] actinium15 commented on a change in pull request #54: SLING-10743 - Run the package cleanup task on a single instance in a …

actinium15 commented on a change in pull request #54:
URL: https://github.com/apache/sling-org-apache-sling-distribution-core/pull/54#discussion_r691879846



##########
File path: src/main/java/org/apache/sling/distribution/serialization/impl/vlt/VaultDistributionPackageBuilderFactory.java
##########
@@ -295,6 +295,7 @@ public void activate(BundleContext context, Map<String, Object> config) {
             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);

Review comment:
       how about?
   ```suggestion
               props.put(Scheduler.PROPERTY_SCHEDULER_RUN_ON, Scheduler. VALUE_RUN_ON_SINGLE);
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org