Open liephat opened 3 years ago
As the aim for the gallery is to be running in an isolated Docker container, using a systemd service as indexer is probably not the best approach.
Instead, we could have the indexing integrated in the Flask app, where a new process could be spawned for doing the indexing. The indexing could be triggered by a button in the front end or a call to the REST API. This would also make it easier to show the current indexing status in the front end and possibly temporarily disable some features (like manually updating labels, in order to not get into concurrency problems when writing to the database).
as systemd service