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

astefanutti pushed a commit to branch release-1.4.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/release-1.4.x by this push:
     new 2692683  Fix cron trait issue
2692683 is described below

commit 26926831de70a6ff3ad67727dc17fbfdf1f8cfdb
Author: liurui-1 <liu...@cn.ibm.com>
AuthorDate: Fri Jun 25 19:26:37 2021 +0800

    Fix cron trait issue
---
 pkg/trait/cron.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/trait/cron.go b/pkg/trait/cron.go
index e876128..3552a25 100644
--- a/pkg/trait/cron.go
+++ b/pkg/trait/cron.go
@@ -237,7 +237,7 @@ func (t *cronTrait) Apply(e *Environment) error {
                        e.ApplicationProperties = make(map[string]string)
                }
 
-               e.ApplicationProperties["camel.main.duration-max-messages"] = 
"1"
+               e.ApplicationProperties["camel.main.duration-max-idle-seconds"] 
= "5"
                
e.ApplicationProperties["loader.interceptor.cron.overridable-components"] = 
t.Components
                e.Interceptors = append(e.Interceptors, "cron")
 

Reply via email to