nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.27k stars 4.06k forks source link

Background Job Management UI for file operations #20243

Open GammaPi opened 4 years ago

GammaPi commented 4 years ago

If you copy/move some large files and then refresh the page, the progressbar will disappear and the user cannot tell if the copy operation has completed other than specifically compare filesize between src and dst folder. They cannot cancel the operation because there is no such button to allow them to do so either. Also if you copy really large folders(like the one with 40GB files), the UI will say "File Cannot Be Copied" (I guess maybe nextcloud UI tell the user operation failed after a certain timeout), but in fact the copy background job is still woking (you can ssh into the server and manually check folder size).

So it will be more intuitive if nextcloud can display background job in a UI, so that user can check it's status/cancel the job easily.

PVince81 commented 2 years ago

on some deployments refreshing the page would kill the PHP process and abort the operation after the network connection is closed on others, the PHP process might survive the page refresh

there is currently no concept of background / async file operation at the moment, this would need to be implemented in the first place before a GUI can be built

joshtrichards commented 1 year ago

The files_zip app (not installed by default) does execute zip jobs behind the scenes then notifies the user when completed (note: this is not the behavior of the default zip support in server). This uses OCP\BackgroundJob\QueuedJob. So the building blocks are there... when someone gets around to it.