Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8939

Async Health Checks also executed every minute

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • Health Check
    • None

    Description

      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

       

       

       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.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            muenkti Timo Münkenwarf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: