Re: Persisting a logged message to the bulletin board

2021-07-22 Thread James McMahon
Yes sir, Matt, I think I am. I “Start” the ExecuteScript processor, and a
thread runs until all the directories have been processed. I think that
means it’s a single OnTrigger event. I’ll try what you suggest in the
morning. Thank you for the suggestion.
Jim

On Thu, Jul 22, 2021 at 5:47 PM Matt Burgess  wrote:

> Jim,
>
> Are you doing the whole series of directories in one call to
> onTrigger? If so you could keep getting the current time and if you
> haven't switched directories then you could reissue the bulletin if
> the elapsed time > 5 mins, then reset the variable to determine the
> next elapsed time.
>
> Regards,
> Matt
>
> On Thu, Jul 22, 2021 at 1:55 PM James McMahon 
> wrote:
> >
> > I'm using a python script from an ExecuteScript processor to work
> through a series of directories. As I begin processing a directory, I log a
> message to the bulletin board using log.info(myMessage).
> >
> > After five minutes, that message expires and is no longer visible.
> However I work within each directory for quite some time and want to
> persist this message as a bulletin until I move to the next directory. How
> can I force a log message to repost with every nifi five minute bulletin
> cycle? Thanks in advance.
> > Jim
>


Re: Persisting a logged message to the bulletin board

2021-07-22 Thread Matt Burgess
Jim,

Are you doing the whole series of directories in one call to
onTrigger? If so you could keep getting the current time and if you
haven't switched directories then you could reissue the bulletin if
the elapsed time > 5 mins, then reset the variable to determine the
next elapsed time.

Regards,
Matt

On Thu, Jul 22, 2021 at 1:55 PM James McMahon  wrote:
>
> I'm using a python script from an ExecuteScript processor to work through a 
> series of directories. As I begin processing a directory, I log a message to 
> the bulletin board using log.info(myMessage).
>
> After five minutes, that message expires and is no longer visible. However I 
> work within each directory for quite some time and want to persist this 
> message as a bulletin until I move to the next directory. How can I force a 
> log message to repost with every nifi five minute bulletin cycle? Thanks in 
> advance.
> Jim


Persisting a logged message to the bulletin board

2021-07-22 Thread James McMahon
I'm using a python script from an ExecuteScript processor to work through a
series of directories. As I begin processing a directory, I log a message
to the bulletin board using log.info(myMessage).

After five minutes, that message expires and is no longer visible. However
I work within each directory for quite some time and want to persist this
message as a bulletin until I move to the next directory. How can I force a
log message to repost with every nifi five minute bulletin cycle? Thanks in
advance.
Jim