Custom Health check runs every 60 seconds on AEM 6.5 | Community
Skip to main content
November 5, 2021
Question

Custom Health check runs every 60 seconds on AEM 6.5

  • November 5, 2021
  • 1 reply
  • 765 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

test-007Author
November 5, 2021

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"