Automate updating embeddings, search index on a hourly schedule

- Use the schedule pypi package
- Use QTimer to poll schedule.run_pending() regularly for jobs to run
This commit is contained in:
Debanjum Singh Solanky
2023-01-01 16:22:35 -03:00
parent a58c243bc0
commit 3b0783aab9
4 changed files with 15 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ setup(
"dateparser == 1.1.1",
"pyqt6 == 6.3.1",
"defusedxml == 0.7.1",
'schedule == 1.1.0',
],
include_package_data=True,
entry_points={"console_scripts": ["khoj = src.main:run"]},