You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by GitBox <gi...@apache.org> on 2021/04/08 21:17:21 UTC

[GitHub] [jena] kinow commented on pull request #980: JENA-2081: add /$/compact/* endpoint to fuseki main

kinow commented on pull request #980:
URL: https://github.com/apache/jena/pull/980#issuecomment-816210418


   > > not sure how long the compact action may take?
   > 
   > @kinow in my situation, it takes about 18-20 minutes to complete because I have a very large dataset. From what I could tell, there is no way to determine if the process has completed unless you ping the server `/$/tasks/{taskId}` endpoint to check if is finished. I would imagine that continuously pinging that from the front-end wouldn't be very desirable. One could check once on load of some page component though.
   
   I think that's what happens with the backup task (I think it's around [this function](https://github.com/apache/jena/blob/31dc0d328c4858401e5d3fa99702c97eba0383a0/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/views/dataset-management.js#L144-L153) that is [scheduled](https://github.com/apache/jena/blob/31dc0d328c4858401e5d3fa99702c97eba0383a0/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/models/task.js#L79-L83) to run [every 500ms or 1s I think](https://github.com/apache/jena/blob/31dc0d328c4858401e5d3fa99702c97eba0383a0/jena-fuseki2/jena-fuseki-webapp/src/main/webapp/js/app/models/task.js#L91-L99).
   
   But that happens only when you execute the backup action. And if you refresh the screen that's gone, you have no more access to the task progress.
   
   In the branch where I am porting it to Vue, I am setting a permanent view for tasks that [updates every 10 seconds](https://github.com/kinow/jena/blob/7580da22cab35b6fbf76006c10544eeba851d84d/jena-fuseki2/jena-fuseki-ui/src/views/manage/Tasks.vue#L118-L126).
   
   But my intention is to first have a replacement for Fuseki Backbone.js app, and then discuss the possibility of perhaps having a secure WebSockets that sends the data to the UI when available. This way we remove the polling, and can send information about any kind of server management tasks to the UI - so I think in the future we could show back up, compression, and other kinds of tasks if that would save users of having to log in to servers and run commands, or having to save HTTP requests to submit to the server.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org