nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Witt <joe.w...@gmail.com>
Subject Re: Cron syntax
Date Thu, 10 Sep 2015 11:13:40 GMT
Alan nailed it.  Quartz supported the finer resolution and some folks
found that useful.  It would be totally fair to ask that given 5
fields we just add a 6th with an implied 0 (for example).  A good JIRA
if you feel that is helpful.

On Wed, Sep 9, 2015 at 8:01 AM, Alan Jackoway <alanj@cloudera.com> wrote:
> I believe that NiFi uses the Quartz cron syntax, which is described here:
> http://quartz-scheduler.org/api/2.2.0/org/quartz/CronExpression.html
>
> As for why, I believe it is because NiFi uses the Quartz java library to
> schedule processes, so it kept with Quartz syntax rather than translating
> it. I'm not sure why Quartz uses 6 instead of 5. Probably for more precision
> so that you can schedule down to the second if you want to.
>
> Alan
>
> On Wed, Sep 9, 2015 at 1:00 PM, John Titus <john.titus@trustedconcepts.com>
> wrote:
>>
>> Just curious - why does the NiFi cron syntax differ from crontab syntax,
>> in that there is a "seconds" field in NiFi cron that I don't think crontab
>> uses? It always throws me that there's an extra field there.
>
>

Mime
View raw message