Reputation: 2869
The situation is that we'll have a nested directory structure shared out selectively to many users, thousands of watchers with each watcher being responsible for dozens of files and updating easily 20+ users.
I've gathered that the cap on watcher duration is ~42 days before it has to be re-created.
What I'd love to see is something like rewatch( fileId, channel )
or channel.refresh(duration)
. Is there no way to refresh a watcher without creating a new one and having to deal with either a gap in coverage or an overlap with double-updates?
Upvotes: 0
Views: 256
Reputation: 3845
According to the documentation, there is no way to refresh the notification channel. After a channel has expired, a new one has to be created.
It is also mentioned that you can provide an expiration time when creating the notification channel. For Drive, the maximum time is 86400 (1 day) for Files and 604800 (1 week) for Changes.
You maybe reduce the time of gap or overlap keeping track of the expiration time provided but still you will have to deal with it.
Upvotes: 1