Expand my Community achievements bar.

Sling Sitemap schedular not working in Publisher

Avatar

Level 1

We are using Apache sling sitemap scheduler but its not working, I am on 6.5 SP16.

All on demand configuration works fine in author.

I created config.publish config in author and published as below:

archanas1187003_0-1698688544557.png

 

its available in publisher.

I am not seeing, that this scheduler is getting executed after every 3 mints in publisher.

 

 

My custom sitemap generator is as below:

 

import org.apache.sling.sitemap.spi.generator.ResourceTreeSitemapGenerator;
import org.apache.sling.sitemap.spi.generator.SitemapGenerator;
@component(service = SitemapGenerator.class)
@Slf4j
public class SitemapGeneratorImpl implements SitemapGenerator {
  public void generate( Resource resource,
       String name,
       Sitemap sitemap,
       Context context) throws SitemapException {
   // logic to add url in sitemap
   }    
}
 
I am running Publisher in debug mode and I am observing that sometime OOTB ProductsSitemapGenerator is getting triggered sometimes(that time also i dont see my schedular is getting triggered) but call is never coming to my custom SitemapGeneratorImpl.
 
I have followed below thread but no luck
 
can someone please help.
 
Thanks in Advance.
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Administrator

@archanas1187003 If you have found out solution yourself, please share it with the community.



Kautuk Sahni