This is an automated email from the ASF dual-hosted git repository.
astefanutti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 7856d87 fix cron trait issue
7856d87 is described below
commit 7856d87d171af24ebfed69fdcd6beaae9d66de2e
Author: liurui-1 <[email protected]>
AuthorDate: Fri Jun 25 19:03:18 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 4954182..daf9249 100644
--- a/pkg/trait/cron.go
+++ b/pkg/trait/cron.go
@@ -240,7 +240,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")