You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/01/06 08:48:00 UTC

[jira] [Commented] (CAMEL-17440) camel-quartz - Fires twice on first cron job when using startDelayed

    [ https://issues.apache.org/jira/browse/CAMEL-17440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469775#comment-17469775 ] 

Claus Ibsen commented on CAMEL-17440:
-------------------------------------

Okay removing the startDelayed option as it causes more pain.

> camel-quartz - Fires twice on first cron job when using startDelayed
> --------------------------------------------------------------------
>
>                 Key: CAMEL-17440
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17440
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-quartz
>    Affects Versions: 3.14.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.15.0
>
>
> Looks like it fires twice on the first job, eg on startup
> {code}
> 07:22:42.099 [DefaultQuartzScheduler-MyYamlCamel_Worker-2] INFO  my-route.yaml:24 - A Hello how are you?
> 07:22:42.099 [DefaultQuartzScheduler-MyYamlCamel_Worker-1] INFO  my-route.yaml:24 - A Hello how are you?
> 07:22:42.099 [DefaultQuartzScheduler-MyYamlCamel_Worker-2] INFO  my-route.yaml:26 - B Bye World
> 07:22:42.099 [DefaultQuartzScheduler-MyYamlCamel_Worker-1] INFO  my-route.yaml:26 - B Bye World
> 07:22:44.007 [DefaultQuartzScheduler-MyYamlCamel_Worker-3] INFO  my-route.yaml:24 - A Hello how are you?
> 07:22:44.007 [DefaultQuartzScheduler-MyYamlCamel_Worker-3] INFO  my-route.yaml:26 - B Bye World
> {code}
> This is from the main-yaml example where its supposed to run with a cron that triggers every 2nd second: 0/2 * * * * ?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)