Menu

#53 Add mtime Feature for sr_poll

Sarra Beta
closed
nobody
None
5
2018-06-02
2016-11-07
Eric Funk
No

Currently sr_poll just loops through a directory, Compares the results with its cache and does a post on the difference. We have encountered issues where sr_poll is polling a file that hasn't fully been transferred into the directory. The notification is posted and a sr_sarra instance may grab the incomplete file.

Metpx sundew receivers have an 'mtime' feature where you can specify how old a file must be (i.e. the time since it last has been written to) before being collected. This feature would be nice to have in sr_poll as well.

In addition some files come in and have umasks to restrict permissions before the file has been transferred, however sr_poll will still poll these files and post them. Ignoring those files would be beneficial as well.

Discussion

  • psilva

    psilva - 2017-02-15

    option should actually be called inflight. see sr_watch for usage.

     
  • psilva

    psilva - 2017-04-24

    could do this with a do_line that examines the ''minute'' display on the remote site (time stamp only goes to minutes, not seconds.)

     
  • psilva

    psilva - 2018-06-02

    done. in 2.17.12 or something...

     
  • psilva

    psilva - 2018-06-02
    • status: open --> closed
     
  • psilva

    psilva - 2018-06-02
     
MongoDB Logo MongoDB