You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Timo Münkenwarf (Jira)" <ji...@apache.org> on 2020/01/24 14:48:00 UTC

[jira] [Commented] (SLING-8939) Async Health Checks also executed every minute

    [ https://issues.apache.org/jira/browse/SLING-8939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17022986#comment-17022986 ] 

Timo Münkenwarf commented on SLING-8939:
----------------------------------------

For documentation, Daycare answered:

{quote}

After checking internally I have found out that this is a known issue of AEM 6.5.2 "Custom Health Checks getting executed every minute" and it has been already reported to the AEM product team.

Internal jira tracking number is: GRANITE-27455

{quote}

> Async Health Checks also executed every minute
> ----------------------------------------------
>
>                 Key: SLING-8939
>                 URL: https://issues.apache.org/jira/browse/SLING-8939
>             Project: Sling
>          Issue Type: Bug
>          Components: Health Check
>            Reporter: Timo Münkenwarf
>            Priority: Major
>
> Hello,
> I currently observed something with async health checks.
> We recently migrated to AEM6.5 and observed, that our health checks were executed every minute by default. Because this was to often, I tried to use asyncCronExpression.
> This makes our Health Checks executed as defined in the asyncCronExpression, but additionally they are still executed every minute.
> Is this a bug or how can I let my Health Checks _only_ be executed as defined in the asyncCronExpression?
> I add some log output at the end. In that case the StaleWorkflowsHealthCheck  should be executed every 5 minutes (asyncCronExpression = "0 0/5 * * * ? *")
> Thanks for your help.
> Timo
>  
> |44| 
> [Apache Sling Health Check API (org.apache.sling.hc.api)|http://localhost:4502/system/console/bundles/44]|1.0.2|sling|Active| |
> |536| 
> [Apache Sling Health Check Core (org.apache.sling.hc.core)|http://localhost:4502/system/console/bundles/536]|1.2.10|sling|Active|
>  
> {code:java}
>  19.12.2019 16:46:01.402 *DEBUG* [OsgiInstallerImpl] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:47:01.406 *DEBUG* [sling-default-4-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:48:01.406 *DEBUG* [sling-default-1-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:49:01.406 *DEBUG* [sling-default-5-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:50:00.000 *DEBUG* [sling-default-3-job-hc-13695] org.apache.sling.hc.core.impl.executor.AsyncHealthCheckExecutor Running job [Async job for HealthCheck 'CUST-Web Stale Workflows Health Check']
> 19.12.2019 16:50:00.000 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.HealthCheckFuture Starting check HealthCheck 'CUST-Web Stale Workflows Health Check'
> 19.12.2019 16:50:00.000 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:50:00.005 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck No stale workflows that are older then 2 day(s) were found.
> 19.12.2019 16:50:00.005 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.HealthCheckFuture Time consumed for HealthCheck 'CUST-Web Stale Workflows Health Check': 4ms
> 19.12.2019 16:50:00.005 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.AsyncHealthCheckExecutor Updated result for async hc HealthCheck 'CUST-Web Stale Workflows Health Check' with ExecutionResult [status=OK, finishedAt=Thu Dec 19 16:50:00 CET 2019, elapsedTimeInMs=4, timedOut=false]
> 19.12.2019 16:50:01.406 *DEBUG* [sling-default-4-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:51:01.407 *DEBUG* [sling-default-3-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:52:01.407 *DEBUG* [sling-default-5-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:53:01.407 *DEBUG* [sling-default-3-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:54:01.407 *DEBUG* [sling-default-1-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:54:59.998 *DEBUG* [sling-default-2-job-hc-13695] org.apache.sling.hc.core.impl.executor.AsyncHealthCheckExecutor Running job [Async job for HealthCheck 'CUST-Web Stale Workflows Health Check']
> 19.12.2019 16:54:59.998 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.HealthCheckFuture Starting check HealthCheck 'CUST-Web Stale Workflows Health Check'
> 19.12.2019 16:54:59.998 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:55:00.000 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck No stale workflows that are older then 2 day(s) were found.
> 19.12.2019 16:55:00.000 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.HealthCheckFuture Time consumed for HealthCheck 'CUST-Web Stale Workflows Health Check': 2ms
> 19.12.2019 16:55:00.000 *DEBUG* [HealthCheck CUST-Web Stale Workflows Health Check] org.apache.sling.hc.core.impl.executor.AsyncHealthCheckExecutor Updated result for async hc HealthCheck 'CUST-Web Stale Workflows Health Check' with ExecutionResult [status=OK, finishedAt=Thu Dec 19 16:55:00 CET 2019, elapsedTimeInMs=2, timedOut=false]
> 19.12.2019 16:55:01.407 *DEBUG* [sling-default-2-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:56:01.406 *DEBUG* [sling-default-1-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> 19.12.2019 16:57:01.406 *DEBUG* [sling-default-2-health-com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck] com.cust.web.core.service.healthchecks.StaleWorkflowsHealthCheck CUST-Web Stale Workflows Health Check started.
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)