How to delay preMove for each file detected using SFTP?

45 views Asked by At

I have the following situation: I need to add a 30 second delay everytime a file is detected by a SFTP route. The route is as follows for now:

sftp://username@host:port/path/to/import/directory
?password=password&moveFailed=/path/to/error/directory
&move=/path/to/success/directory
&preMove=/path/to/inProgress/directory
&delay=30&initialDelay=30&useFixedDelay=true&timeUnit=SECONDS

How should I do if I want the 30 second delay to be applied independently to the detection of each file? For example:

  • t0: File 1 dropped
  • t10: File 2 dropped
  • t30: File 1 moved and rest of processing start
  • t40: File 2 moved and rest of processing start

Thanks so much in advance!

Tried everything I could find

0

There are 0 answers