Closed thijsvanloef closed 1 month ago
great idea!
a few thoughts:
not sure at the moment on 2, but i need to crank out 1 in any case before proceeding in either direction. i'll be able to do that tonight.
what do you think about 2?
Cron will allow you to define a cron shedule and opens the ability to add more cron tasks in the future. inotifywait checks for actual changes to the directory before running the create.py,l saving resources, and is probably the more user friendly option.
During testing I would much prefer the inotifywait for this specific process.
All right!
Just pushed these changes (among others) to address 1:
A new "refresh index" button to update the index when images are added or removed from the data/input image directory, affecting only the newly added or removed images. See the gif in the updated README.md.
Pressing this new button just calls the same command
python meme_search/utilities/create.py
but now this command doesn't completely re-create the index, but only
data/input
to the indexThis gives us something in the direction of 2 for now as well - as you can now manually refresh your index!
As for a cron for 2 - inotifywait would be for the docker version right?
More tests have been added to /tests
directory as well - haven't pushed them all to actions yet!
Closing for now given the manual refresh index button update.
Indexing currently requires the user to run the following command manually:
If supercronic would be installed, you would be able to use a cron expression to run it at a set interval.
Let me know if this is something you want me to include, I can open a PR :)