Expand my Community achievements bar.

Custom Health check runs every 60 seconds on AEM 6.5

Avatar

Level 1

HI All, 

I'm facing an issue on AEM 6.5 where my custom Sling health check is automatically registered via class 

com.adobe.granite.queries.impl.hc.QueryHealthCheckMetrics$LazyGauge.<init>(QueryHealthCheckMetrics.java:268)

to a scheduler to run every 60 seconds (configurable in com.adobe.granite.queries.impl.hc.QueryHealthCheckMetrics - but if affects all AEM health checks). 

My question is - is it possible to exclude my custom health check from registering it to the scheduler via QueryHealthCheckMetrics - therefore it would not be automatically triggered to run -- I have another custom class that triggers it once a day. 

Or the approach here would be to remove my custom health check from the scheduler (after it has been added). 

Our implementation worked before we moved to AEM 6.x version. 

 

Many thanks for any help

Waldemar R.

1 Reply

Avatar

Level 1

HI, 

I found a working solution (not sure if this is only way and if it's recommended to do that). To ignore custom health checks to be ignored the name must ends with "PatternDetectorReactiveExecutor"