Debounce syncing?

Hello,

would it be possible to add a debounce to option to the GUI / command line client that when a file is changed, it waits some period of time - say, 5 seconds - before initializing a sync?

Currently, when e.g. a .tex file is compiled, it syncs several times for each of the files created (.pdf, .aux, .log, etc) instead of one push for all of it.  A debounce would, I think, solve this issue.

Comments

  • The current wait time is hard-coded at 2 seconds.  I'll make it configurable in the next update.
  • Is the debounce implemented per-file?  Directory?  Profile?

    tex2pdf will spit out all of those files in a fraction of a second, even a 2 second delay should mean they all go at once.
  • The debounce is per profile.  Acrosync will try to bundle all changed files together and pass them as included patterns to one rsync all.  So I don't know why it is different for you.  Can you post some logs here with the 'Verbose logging' option checked?
  • Sorry for the delay -- here is a log; the timestamp at 2018/03/26 01:46:39 is the beginning of pdftex running.

    It may be to do with the files being busy as pdflatex runs.
  • I think this is a bug.  It doesn't seem like the delay of 2 seconds was handled properly.


    If the 2 second delay isn't enough, you can add a registry value HKCU\Software\Acrosync\AcrosyncClient\AutoUploadDelay as a DWORD with a value equal to the number of seconds you want the delay to be.
  • This seems to have fixed it, thanks!
Sign In or Register to comment.