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

Georg Henzler edited comment on FELIX-6295 at 7/6/20, 3:18 PM:
---------------------------------------------------------------

Please see test the setup from comment 
https://issues.apache.org/jira/browse/FELIX-6292?focusedCommentId=17152070&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17152070
 using a cron expression for HealthCheckMonitor only. 

bq. executed immediately first 

Generally when using cron expressions, there should only be executions that 
satisfy the cron expression, e.g. "0 15 10 * * ?" will not fire on bundle start 
in the afternoon but wait for the next "compliant time" at 10.15am the next 
day. 

Why introduce an additional property (which would require to bump the API 
version) when for those cases, just a cron expression can be used? (now that we 
have it for all setups...)


was (Author: henzlerg):
Please see test the setup from comment 
https://issues.apache.org/jira/browse/FELIX-6292?focusedCommentId=17152070&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17152070
 using a cron expression for HealthCheckMonitor only. 

bq. executed immediately first 

Generally when using cron expressions, there should only be executions that 
satisfy the cron expression, e.g. "0 15 10 * * ?" will not fire on bundle start 
in the after noon but way for the next "compliant time" at 10.15am the next 
day. 

Why introduce an additional property (which would require to bump the API 
version) when for those cases, just a cron expression can be used? (now that we 
have it for all setups...)

> Introduce initial delay for asynchronous health checks with interval
> --------------------------------------------------------------------
>
>                 Key: FELIX-6295
>                 URL: https://issues.apache.org/jira/browse/FELIX-6295
>             Project: Felix
>          Issue Type: New Feature
>          Components: Health Checks
>            Reporter: Amit Mondal
>            Priority: Minor
>              Labels: pull-request-available
>
> Currently we can schedule health checks having different intervals but we 
> cannot configure the initial delay of the health check execution. It is 
> currently set to be executed immediately first and then it is executed 
> according to the configured interval. Consumers might also need to delay the 
> first execution at a later time - not immediately. That's why it would be 
> beneficial to introduce _*initialDelayForIntervalInSec*_ attribute in 
> _*Async*_ component type annotation (which can be set to 0 as default since 
> it is the current behavior). If consumers need, they would still be able to 
> configure it accordingly.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to