You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by "Ben .T.George" <be...@gmail.com> on 2022/06/26 10:31:49 UTC

How to configure wait process along with ListSFTP process

Hello,

How to configure the wait process along with ListSFTP process because
before fetching the file i need to run a schedule to change the permission
of the file which runs every minute.

[image: image.png]

Regards,
Ben

Re: How to configure wait process along with ListSFTP process

Posted by "Ben .T.George" <be...@gmail.com>.
Hello,

Thanks for the response, I will try to configure failure retry in the
FetchSFTP module.

Regards,
Ben

On Mon, Jun 27, 2022 at 7:07 PM Mark Payne <ma...@hotmail.com> wrote:

> Ben,
>
> The Wait processor is not intended for this purpose. It’s intended to be
> used along with the Notify processor. So the processor will block FlowFiles
> going forward until the Notify processor indicates that the FlowFile should
> be released.
>
> Take a look at ListSFTP’s “Minimum File Age” property. You can set that to
> say 1 minute. That will avoid listing the file until it’s at least 1 minute
> old.
>
> Or, alternatively, you can configure FetchSFTP to retry failures and set
> the Penalty Duration to 1 minute. That way, if it fails, it will wait 1
> minute and try again, up to the configured number of retries.
>
> Thanks
> -Mark
>
>
> > On Jun 26, 2022, at 6:31 AM, Ben .T.George <be...@gmail.com>
> wrote:
> >
> > Hello,
> >
> > How to configure the wait process along with ListSFTP process because
> before fetching the file i need to run a schedule to change the permission
> of the file which runs every minute.
> >
> > <image.png>
> >
> > Regards,
> > Ben
>
>

-- 
Yours Sincerely
Ben.T.George
Phone : +965 - 50629829 / 94100799

*" Live like you will die tomorrow, learn like you will live forever "*

Re: How to configure wait process along with ListSFTP process

Posted by Mark Payne <ma...@hotmail.com>.
Ben,

The Wait processor is not intended for this purpose. It’s intended to be used along with the Notify processor. So the processor will block FlowFiles going forward until the Notify processor indicates that the FlowFile should be released.

Take a look at ListSFTP’s “Minimum File Age” property. You can set that to say 1 minute. That will avoid listing the file until it’s at least 1 minute old.

Or, alternatively, you can configure FetchSFTP to retry failures and set the Penalty Duration to 1 minute. That way, if it fails, it will wait 1 minute and try again, up to the configured number of retries.

Thanks
-Mark


> On Jun 26, 2022, at 6:31 AM, Ben .T.George <be...@gmail.com> wrote:
> 
> Hello,
> 
> How to configure the wait process along with ListSFTP process because before fetching the file i need to run a schedule to change the permission of the file which runs every minute.
> 
> <image.png>
> 
> Regards,
> Ben