Class TargetDeploymentRuntimeSupervisor

java.lang.Object
org.craftercms.deployer.impl.tasks.TargetDeploymentRuntimeSupervisor

@Component @ConditionalOnProperty("deployer.main.deployments.supervisor.enabled") public class TargetDeploymentRuntimeSupervisor extends Object
Cron task that checks the runtime of deployments for all targets. If a deployment has been running longer than the configured threshold, it triggers a DeploymentRuntimeWarningEvent in the target
  • Field Details

  • Constructor Details

  • Method Details

    • checkDeploymentsRuntime

      @Scheduled(cron="${deployer.main.deployments.supervisor.cron}") public void checkDeploymentsRuntime() throws TargetServiceException
      Throws:
      TargetServiceException
    • checkDeploymentRuntime

      protected void checkDeploymentRuntime(Target target)
      Checks the runtime of the current deployment for a target. If there is a running deployment and its runtime exceeds the configured threshold, it triggers a DeploymentRuntimeWarningEvent for the target.
      Parameters:
      target - the target to check