You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Level D <72...@qq.com> on 2016/09/29 01:42:55 UTC

Question about cron-based scheduler

Hi all,


I find the minimal scheduling time unit this scheduler supported  is 1 minute.


But I need a scheduling time unit less than 1 minute . 
Is there a way to make it happen?

Regards,


Zhou.

Re: Question about cron-based scheduler

Posted by Dmitriy Govorukhin <dm...@gmail.com>.
Hi,

Do you want use exactly cron scheduler?

Unfortunately cron supported the minimum unit time 1 min.

 # ┌───────────── min (0 - 59)
 # │ ┌────────────── hour (0 - 23)
 # │ │ ┌─────────────── day of month (1 - 31)
 # │ │ │ ┌──────────────── month (1 - 12)
 # │ │ │ │ ┌───────────────── day of week (0 - 6) (0 to 6 are Sunday to
 # │ │ │ │ │                  Saturday, or use names; 7 is also Sunday)
 # │ │ │ │ │
 # │ │ │ │ │

# * * * * * command to execute

Ignite just only add prefix specifying the number of iteration and delay
beetwen invoke method "scheduleLocal" and  first execution. {n1, n2} n1
-delay before first execution, n2- number of iteration.

if there is no need cron, you can try any other scheduler which support
delay less 1 min. For example ScheduledExecutorService.


On Thu, Sep 29, 2016 at 4:42 AM, Level D <72...@qq.com> wrote:

> Hi all,
>
> I find the minimal scheduling time unit this scheduler supported is 1
> minute.
>
> But I need a scheduling time unit less than 1 minute .
> Is there a way to make it happen?
>
> Regards,
>
> Zhou.
>
>>
>