nicolaferraro opened a new issue #1394: Cannot switch between cron and normal 
deployment in dev mode
URL: https://github.com/apache/camel-k/issues/1394
 
 
   Have an integration that runs from timer:
   
   ```
   from("timer:tick?period=1000").log("Hello")
   ```
   
   I run it in dev mode:
   
   ```
   kamel run it.groovy --dev
   ```
   
   After it runs, I change the code to run every minute:
   
   ```
   from("timer:tick?period=60000").log("Hello")
   ```
   
   The integration is turned into a cronjob correctly, but it fails when it 
runs:
   
   ```
   [3] Caused by: java.lang.IllegalArgumentException: Unable to find source 
loader interceptor for: cron
   [3]     at 
org.apache.camel.k.support.RuntimeSupport.lambda$loadInterceptors$11(RuntimeSupport.java:232)
   [3]     at java.base/java.util.Optional.orElseThrow(Optional.java:408)
   [3]     at 
org.apache.camel.k.support.RuntimeSupport.loadInterceptors(RuntimeSupport.java:232)
   [3]     ... 23 more
   ```
   
   The problem is that the `org.apache.camel.k:camel-k-runtime-cron` library is 
missing.
   
   When running the integration normally (not from dev mode, directly as 
CronJob), everything works.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to