nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Drob <mad...@cloudera.com>
Subject Re: Threading in a NiFi Processor
Date Thu, 13 Aug 2015 18:34:25 GMT
Under processor configuration you can set Scheduling > Run Schedule > 1 sec
to control how often it is scheduled to run by the framework. Does that
address the need?

On Thu, Aug 13, 2015 at 1:19 PM, Ryan Hendrickson <
rhendrickson.work@gmail.com> wrote:

> I have always stayed away from doing any threading inside a NiFi processor.
>
> However, I recently came across a use-case where I'm calling a web service
> from within a custom Nifi Processor and I don't want to overwhelm the web
> service.
>
> I'd like to instrument a sleep in the onTrigger() or process() method of
> about 1 second, or a configurable amount.
>
> Is there a pattern established for Nifi Processors to accomplish this
> nicely?
>
> Thanks,
> Ryan
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message