This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new aa62a6e276b CAMEL-20242: camel-core: RouteController health check to 
be DOWN during starting routes. Supervising route controller option to be DOWN 
during restarting phase.
aa62a6e276b is described below

commit aa62a6e276b3ce2f107b211549ce577df6e82521
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Sat Dec 16 19:24:27 2023 +0100

    CAMEL-20242: camel-core: RouteController health check to be DOWN during 
starting routes. Supervising route controller option to be DOWN during 
restarting phase.
---
 core/camel-spring-boot/src/main/docs/spring-boot.json          |  7 +++++++
 .../apache/camel/spring/boot/CamelConfigurationProperties.java | 10 ++++++++++
 2 files changed, 17 insertions(+)

diff --git a/core/camel-spring-boot/src/main/docs/spring-boot.json 
b/core/camel-spring-boot/src/main/docs/spring-boot.json
index 594f8f9298b..b9e376152cf 100644
--- a/core/camel-spring-boot/src/main/docs/spring-boot.json
+++ b/core/camel-spring-boot/src/main/docs/spring-boot.json
@@ -1032,6 +1032,13 @@
       "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
       "defaultValue": false
     },
+    {
+      "name": "camel.springboot.route-controller-unhealthy-on-restarting",
+      "type": "java.lang.Boolean",
+      "description": "Whether to mark the route as unhealthy (down) when the 
route failed to initially start, and is being controlled for restarting 
(backoff). Setting this to true allows health checks to know about this and can 
report the Camel application as DOWN. The default is false.",
+      "sourceType": 
"org.apache.camel.spring.boot.CamelConfigurationProperties",
+      "defaultValue": false
+    },
     {
       "name": "camel.springboot.route-filter-exclude-pattern",
       "type": "java.lang.String",
diff --git 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
index 55840c51ccc..f774fa4afa0 100644
--- 
a/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
+++ 
b/core/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/CamelConfigurationProperties.java
@@ -897,6 +897,16 @@ public class CamelConfigurationProperties extends 
DefaultConfigurationProperties
      */
     private boolean routeControllerUnhealthyOnExhausted;
 
+    /**
+     * Whether to mark the route as unhealthy (down) when the route failed to 
initially start, and is being controlled
+     * for restarting (backoff).
+     *
+     * Setting this to true allows health checks to know about this and can 
report the Camel application as DOWN.
+     *
+     * The default is false.
+     */
+    private boolean routeControllerUnhealthyOnRestarting;
+
     /**
      * Experimental: Configure the context to be lightweight.
      * This will trigger some optimizations and memory reduction options.

Reply via email to