amarkevich commented on a change in pull request #6344:
URL: https://github.com/apache/camel/pull/6344#discussion_r736860291
##########
File path:
components/camel-quartz/src/main/java/org/apache/camel/component/quartz/QuartzEndpoint.java
##########
@@ -81,8 +81,6 @@
private String cron;
@UriParam
private boolean stateful;
- @UriParam(label = "scheduler")
- private boolean fireNow;
Review comment:
1. `TriggerBuilder` init `startTime = new Date()`
2. `QuartzEndpoint#createTrigger` call `TriggerBuilder#startAt` with `new
Date()` argument
3. in case `fireNow` is set: `TriggerBuilder.startNow()` do `startTime = new
Date()`
All cases do the same; this PR keep only the first.
To have `fireNow` for cron trigger the simplest way is reuse existing
`triggerStartDelay` with negative value: developer knows schdule interval and
able to set interval in the past to misfire the trigger and get `fireNow`
behaviour
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]