nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Bende <bbe...@gmail.com>
Subject Re: Scheduling using CRON driven on Windows OS
Date Thu, 16 Jun 2016 20:45:17 GMT
Does 0 0/2 * * * ?  work?

Another option, if you don't care about it being on the exact time
boundaries, you could use the timer driven scheduling and set it to 120
seconds, that would be every 2 minutes from when the processor starts.

On Thu, Jun 16, 2016 at 4:23 PM, Keith Lim <Keith.Lim@ds-iq.com> wrote:

> I have a follow up question.
>
>
> I want 1 flowfile generated every two minutes: 00 */2 * * * ?   ( I have
> tried * */2 * * * ?,  0 */2 * * * ?  00 00/02 * * * ? and  as well)
>
> but instead I am seeing 20 flowfiles generated every two minutes.
>
> I even set the Yield Duration to 5 secs just to see if it does any thing,
> but I am not able to get it to generate only 1 flowfile every two minutes.
>
>
> Thanks,
> Keith
>
> ------------------------------
> *From:* Keith Lim <Keith.Lim@ds-iq.com>
> *Sent:* Thursday, June 16, 2016 10:44 AM
>
> *To:* users@nifi.apache.org
> *Subject:* Re: Scheduling using CRON driven on Windows OS
>
>
> Thanks for pointing this out.  My bad for not referring to the
> NiFi documentation.   When I saw the Cron Driven and presented with the
> default "* * * * * ?", my instinct was to reference a standard Linux/Unix
> Cron format.
>
>
> Thanks,
> Keith
> ------------------------------
> *From:* Bryan Bende <bbende@gmail.com>
> *Sent:* Thursday, June 16, 2016 10:19 AM
> *To:* users@nifi.apache.org
> *Subject:* Re: Scheduling using CRON driven on Windows OS
>
> Also, the user guide has a description of the scheduling strategies which
> described the cron format:
>
> https://nifi.apache.org/docs/nifi-docs/html/user-guide.html#scheduling-tab
>
> On Thu, Jun 16, 2016 at 1:17 PM, Pierre Villard <
> pierre.villard.fr@gmail.com> wrote:
>
>> Hi Keith,
>>
>> This is the expected behavior, the first parameter is indeed seconds so
>> that */5 * * * * ? will generate a FF every 5 seconds.
>> In your case, I believe you'd like something like 00 02 10 * * ?
>>
>> Hope this helps.
>>
>> 2016-06-16 19:13 GMT+02:00 Keith Lim <Keith.Lim@ds-iq.com>:
>>
>>> My GenerateFlowFile processor is enabled and started
>>>
>>> with
>>>
>>>
>>> Scheduling Strategy: Cron Driven
>>>
>>> Run Schedule : 02 10 * * * ?
>>>
>>>
>>> This I expects to generate a flow file daily at 10:02 am, but from my
>>> limited test, it seems to take the second parameter as minutes, and
>>> generate a flowfile hourly at 10 minutes after the hour, e.g. 10:10, 11:10,
>>> 12:10, 13:10...
>>>
>>> Perhaps there is a bug in parsing system date format?
>>>
>>>
>>> Attached is a simple template that I am using for testing.
>>>
>>>
>>> Thanks,
>>> Keith
>>>
>>>
>>> ------------------------------
>>> *From:* Andrew Grande <aperepel@gmail.com>
>>> *Sent:* Wednesday, June 15, 2016 4:10 PM
>>> *To:* users@nifi.apache.org
>>> *Subject:* Re: Scheduling using CRON driven on Windows OS
>>>
>>>
>>> Keith,
>>>
>>> Was your processor running at all times? It has to be started and
>>> enabled.
>>>
>>> I guess sharing the cron expression and maybe a quick screenshot will
>>> help next.
>>>
>>> Andrew
>>>
>>> On Wed, Jun 15, 2016, 6:58 PM Keith Lim <Keith.Lim@ds-iq.com> wrote:
>>>
>>>> I tried setting Scheduling Strategy property to CRON Driven but does
>>>> not seem to work.   Sometimes it would fire when not expected to and others
>>>> not fire when expected to.
>>>> This is on Windows OS and the processor I tried was GenerateFlowFile.
>>>> Is CRON Driven setting not designed to work on Windows OS?
>>>>
>>>> Thanks,
>>>> Keith
>>>>
>>>>
>>>>
>>
>

Mime
View raw message