Check open documents/files on document server for upgrade

hi,

I am hosting a onlyoffice document for multiple nextcloud instances and need to update that from time to time, so is there any interface to check if there is a document open, so I can upgrade without data loss for the users?

In Collabora there is a tool to do that, so can I do such in onlyoffice too and can I close them gracefully?

So you are all upgrading without checking if any users are still have open documents?

got an answer from github if someone else needs that,
you need to do:

docker exec -it <CID> /bin/bash 
documentserver-prepare4shutdown.sh

that can take some time, this should close all open documents safely.