You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/18 10:49:52 UTC
[GitHub] [camel-karavan] davsclaus opened a new issue #112: JBang live reload
davsclaus opened a new issue #112:
URL: https://github.com/apache/camel-karavan/issues/112
We have support for live reload in Camel 3.14.0
https://issues.apache.org/jira/browse/CAMEL-17206
So you can run
```
jbang -Dcamel.jbang.version=3.14.0-SNAPSHOT CamelJBang@apache/camel run my-route.yaml --reload
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-974886411
Reset duration counters: https://issues.apache.org/jira/projects/CAMEL/issues/CAMEL-17215
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin edited a comment on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin edited a comment on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-974130650
Yes, I thought if `--max-messages` and `--reload` both set then after max-messages processing stops but don't exit.
And after changes in the code it reloads and process till next max-messages
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-979043657
Okay I have fixed that reload issue (there is maybe a little bit too much logging noise about stopping/shutdown routes)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-976323229
Okay now we stop routes when using `reload` and shutdown JVM if not.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-977628815
You can also use `kamelet` in the to, eg
```
- to: "kamelet:log-sink?showHeaders=false"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975526061
No, one is X number of messages in total processed, and the other is after X seconds (time). And there is also a 3rd about being idle (eg no messages after X time)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-977721861
I created a ticket
https://issues.apache.org/jira/browse/CAMEL-17228
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975496821
`reload` option has been added
<img width="873" alt="Screen Shot 2021-11-22 at 7 42 30 AM" src="https://user-images.githubusercontent.com/1379213/142865976-7df1002b-6e05-462d-891c-876adf3f537a.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975522636
Are max-messages and max duration the same option?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-977626884
@mgubaidullin okay so its a problem with the Kamelet EIP. I need to dig deeper to find the bug
If you use this, then it works
```
apiVersion: camel.apache.org/v1
kind: Integration
metadata:
name: my-camel-k.yaml
spec:
flows:
- from:
uri: "kamelet:timer-source"
parameters:
message: Hello Camel K3
period: 3000
steps:
- to: "log:sink?showHeaders=false"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-973181187
How it works with `--max-messages=XX` ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-973780557
Max messages will still be active, so if you set it to 10 seconds then it will stop after that time, regardless of if reloaded or not.
Are you looking for a way to "restart the max messages" on reload?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975498471
If I use the following command
```
jbang -Dcamel.jbang.version=3.14.0-SNAPSHOT CamelJBang@apache/camel run timer-demo.yaml --max-messages=10 --logging-level=info --reload
```
After 10 messages route stops and program exit. I thought if we could just stop route after `-max-messages` without exit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975519643
Created a ticket
https://issues.apache.org/jira/browse/CAMEL-17223
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975520464
We could terminate if no `reload` option or just stop route if there is a `reload` option
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin edited a comment on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin edited a comment on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975498471
If I use the following command
```
jbang -Dcamel.jbang.version=3.14.0-SNAPSHOT CamelJBang@apache/camel run timer-demo.yaml --max-messages=10 --logging-level=info --reload
```
After 10 messages route stops and program exit.
I thought if we could just stop route after `-max-messages` without exit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-975517788
Ah but max duration(s) has always been to terminate the JVM application.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-977257707
@davsclaus route does not start after stop if change log parameters. ex. https://youtu.be/lAVERmz8tu4
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-974886312
I wonder if we should name the option `--dev` so its more similar to quarkus with its `mvn quarkus:dev` maven command?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] davsclaus closed issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
davsclaus closed issue #112:
URL: https://github.com/apache/camel-karavan/issues/112
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-974130650
Yes, I thought if `--max-messages` and `--reload` both set than after max-messages processing stops but don't exit.
And after changes in the code it reloads and process till next max-messages
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-karavan] mgubaidullin commented on issue #112: JBang live reload
Posted by GitBox <gi...@apache.org>.
mgubaidullin commented on issue #112:
URL: https://github.com/apache/camel-karavan/issues/112#issuecomment-979341667
Now it works fine for me. Thanks @davsclaus
Now I need to fix [that issue](https://github.com/apache/camel-karavan/issues/128) to make reload even better.
I think this issue could be close.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org