syncthing-android icon indicating copy to clipboard operation
syncthing-android copied to clipboard

[FR] run according time schedule, stay running until syncing is done

Open grimpy opened this issue 6 years ago • 8 comments

Make it possible to keep app native app running untill all sync process is done.

I like the time schedule cause most of the time there is nothing to synced, but in my usecase when there is data that needs to be synced it's going to be several gigabytes and it will not finish in just 5minutes. So it would be usefull to leave the native app running if there is content being synced.

grimpy avatar Nov 06 '19 09:11 grimpy

Ok, please define technically when sync is done in a decentral multinode cluster... See other issues on the official tracker about that to learn why this isn't easy in Syncthing.

Catfriend1 avatar Nov 06 '19 09:11 Catfriend1

for my specific usecase that means the current device has no folders in syncing status

a simplistic implementation could be: when 5minutes runtime are up check if there are still folders in syncing status if so check again in 5min ( repeat this loop indefnitly) else do the stop like it's done now

grimpy avatar Nov 06 '19 09:11 grimpy

The problem is, when you start up syncthing until it connects it has "up2date" on all folders. You never know when a second party comes up or leaves... We could check,but risk endlessly staying active when the other side is out of sync forever.

Catfriend1 avatar Nov 06 '19 11:11 Catfriend1

@Catfriend1 my fr was all about not stopping it while it is still syncing. it wasn't referring to when to start it I have no problem with the current implementation regarding the start.

I wouldn't really have a problem with that personally if the peers are not synced we should not just leave them hanging imho, it could be a free to choose option.

Note: the way I'm using syncthing on my phone is to move files from place x (home) to y (work) where my phone is acting as some kind of automated sneakernet, where place x and y are not directly connected (cause internet is slow and expensive where I live)

grimpy avatar Nov 06 '19 12:11 grimpy

Ok, maybe I'll do a PR about that "not stop when its syncing after the 5 Minute timeframe" because that would fit best to explain the user easily on the UI. :-)

Catfriend1 avatar Nov 06 '19 12:11 Catfriend1

This requires fixing issue https://github.com/Catfriend1/syncthing-android/issues/554 and associated PR to succeed first.

Catfriend1 avatar Nov 14 '19 14:11 Catfriend1

This can now be implemented as "Show sync progress percentage in notification (#555)" is done.

Catfriend1 avatar Nov 19 '19 22:11 Catfriend1

Maybe we'll do that after #574 or after christmas :)

Catfriend1 avatar Dec 12 '19 15:12 Catfriend1