You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by Ravisankar Mani <rr...@gmail.com> on 2016/05/20 11:09:43 UTC

Scheduling approach

Hi All,


I have used the *CRON driven* type scheduling in processor in order to
repeat the process for every 5 mins. But after starting the processor i
need to wait for 5 mins to get the result form the processor. is it
possible to run the process while starting Processor  ?.  after that
initial run process will schedule to every 5 mins. is it possible ?



Regards,

Ravisankar

Re: Scheduling approach

Posted by Aldrin Piri <al...@gmail.com>.
Ravi,

For the "Saturday at 12pm" case, Cron scheduling would be the path
forward.  There is a slight difference as this scheduler is based off of
Quartz and there is some documentation located in our User Guide [1] if you
are unfamiliar.

With regards to force starting a process, could you provide some additional
details on what you are looking to accomplish and/or specific processors
you were looking to use?  Inherently, every processor is driven by the
FlowController in terms of being allocated a thread for execution when it
is scheduled to run.

[1]
http://nifi.apache.org/docs/nifi-docs/html/user-guide.html#Configuring_a_Processor
[2] http://nifi.apache.org/docs/nifi-docs/rest-api/index.html

On Mon, May 23, 2016 at 9:09 AM, Ravisankar Mani <rr...@gmail.com> wrote:

> Hi Aldrin Piri,
>
>
> Thank you for your response.
>
> yes you are correct . i just mentioned the sample Cron scheduling (i.e for
> every  sec). we may also have possibilities to schedule some processors on
> every Saturday 12:00 Pm. on that case we have to go for Cron type
> scheduling right ?
>
>
> As you said that Cron scheduling will not start process at 0 sec. thats
> fine for me.
>
>
> Is there is any other way to force start the process irrespective of
> scheduling in NIfI using REST API ?
>
>
> Regards
>
> Ravi
>
> On Fri, May 20, 2016 at 7:52 AM, Aldrin Piri <al...@gmail.com> wrote:
>
>> Hi Ravi,
>>
>> If my understanding is correct, you would like the processor to run
>> immediately and then every 5 minutes after?  If so, this could be
>> accomplished with the Timer Driven scheduling strategy and specifying a Run
>> Schedule of 5 minutes.
>>
>> Cron will get you a specific time enabling you to either run every 5th
>> minute (*/5 * * ...) or an explicit listing of minutes that might start at
>> a non-zero number of the hour such as (2,7,12,17,22... * * ...).
>>
>> If your needs are a bit different and not met by these approaches, some
>> additional details will help us track down the right path.
>>
>>
>>
>> On Fri, May 20, 2016 at 7:09 AM, Ravisankar Mani <rr...@gmail.com>
>> wrote:
>>
>>> Hi All,
>>>
>>>
>>> I have used the *CRON driven* type scheduling in processor in order to
>>> repeat the process for every 5 mins. But after starting the processor i
>>> need to wait for 5 mins to get the result form the processor. is it
>>> possible to run the process while starting Processor  ?.  after that
>>> initial run process will schedule to every 5 mins. is it possible ?
>>>
>>>
>>>
>>> Regards,
>>>
>>> Ravisankar
>>>
>>
>>
>

Re: Scheduling approach

Posted by Ravisankar Mani <rr...@gmail.com>.
 Hi Aldrin Piri,


Thank you for your response.

yes you are correct . i just mentioned the sample Cron scheduling (i.e for
every  sec). we may also have possibilities to schedule some processors on
every Saturday 12:00 Pm. on that case we have to go for Cron type
scheduling right ?


As you said that Cron scheduling will not start process at 0 sec. thats
fine for me.


Is there is any other way to force start the process irrespective of
scheduling in NIfI using REST API ?


Regards

Ravi

On Fri, May 20, 2016 at 7:52 AM, Aldrin Piri <al...@gmail.com> wrote:

> Hi Ravi,
>
> If my understanding is correct, you would like the processor to run
> immediately and then every 5 minutes after?  If so, this could be
> accomplished with the Timer Driven scheduling strategy and specifying a Run
> Schedule of 5 minutes.
>
> Cron will get you a specific time enabling you to either run every 5th
> minute (*/5 * * ...) or an explicit listing of minutes that might start at
> a non-zero number of the hour such as (2,7,12,17,22... * * ...).
>
> If your needs are a bit different and not met by these approaches, some
> additional details will help us track down the right path.
>
>
>
> On Fri, May 20, 2016 at 7:09 AM, Ravisankar Mani <rr...@gmail.com>
> wrote:
>
>> Hi All,
>>
>>
>> I have used the *CRON driven* type scheduling in processor in order to
>> repeat the process for every 5 mins. But after starting the processor i
>> need to wait for 5 mins to get the result form the processor. is it
>> possible to run the process while starting Processor  ?.  after that
>> initial run process will schedule to every 5 mins. is it possible ?
>>
>>
>>
>> Regards,
>>
>> Ravisankar
>>
>
>

Re: Scheduling approach

Posted by Aldrin Piri <al...@gmail.com>.
Hi Ravi,

If my understanding is correct, you would like the processor to run
immediately and then every 5 minutes after?  If so, this could be
accomplished with the Timer Driven scheduling strategy and specifying a Run
Schedule of 5 minutes.

Cron will get you a specific time enabling you to either run every 5th
minute (*/5 * * ...) or an explicit listing of minutes that might start at
a non-zero number of the hour such as (2,7,12,17,22... * * ...).

If your needs are a bit different and not met by these approaches, some
additional details will help us track down the right path.



On Fri, May 20, 2016 at 7:09 AM, Ravisankar Mani <rr...@gmail.com> wrote:

> Hi All,
>
>
> I have used the *CRON driven* type scheduling in processor in order to
> repeat the process for every 5 mins. But after starting the processor i
> need to wait for 5 mins to get the result form the processor. is it
> possible to run the process while starting Processor  ?.  after that
> initial run process will schedule to every 5 mins. is it possible ?
>
>
>
> Regards,
>
> Ravisankar
>