Skip to content
This repository has been archived by the owner on Jun 27, 2020. It is now read-only.

Isolate the book repository update process (for "lazy start" and "manually triggering repository updates") #34

Closed
SR-G opened this issue Dec 31, 2017 · 3 comments
Assignees

Comments

@SR-G
Copy link

SR-G commented Dec 31, 2017

Right now the repository scan seems to be done only on start.
The server is not going to start before the end of this analysis.

The idea would be to : isolate the scan process.

That would allow :

  • to have a "lazy start" : the server would immediately start while the analysis would be still on-going in the background
  • to be able to manually trigger the refresh of the books repository while the server is up and running (for example through a dedicated UI function)

Would probably need to then have the status of this refresh on the UI ("Scan in progress, file # on #").

@pgaskin pgaskin added this to the v3.x.x milestone Jan 3, 2018
@pgaskin
Copy link
Owner

pgaskin commented Jan 3, 2018

That's a great idea. I'll look into implementing this sometime soon, once I have some more free time.

@pgaskin pgaskin self-assigned this Aug 14, 2018
@pgaskin
Copy link
Owner

pgaskin commented Aug 14, 2018

I have implemented this and will be releasing it in the next version. Indexing will happen in the background with progress showing in the web interface and the terminal. A refresh can be triggered by sending SIGUSR1 to the process.

@pgaskin
Copy link
Owner

pgaskin commented Sep 27, 2018

@SR-G I've released this feature in v4.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants