aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-02-24 17:10:50 +0100
committerneodarz <neodarz@neodarz.net>2019-02-24 17:10:50 +0100
commit5e448f52252df2e92565ece488c9dffd49e082d2 (patch)
treea0d850a8ff255429b3b55039a37e51fa7a0e2c6b /README.md
parente12eb8bd99c1b6695873632e0540fa07379671d4 (diff)
downloadkhanindexer-master.tar.xz
khanindexer-master.zip
Add first implemention of a cron like functionHEADmaster
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 34ce041..7c803d3 100644
--- a/README.md
+++ b/README.md
@@ -95,6 +95,26 @@ content modified, you can use:
python app.py update
```
+# Cron
+
+If you want to use cron for start tasks you can use it.
+But there is a cron like function with this app who do nothing more that cron
+for the moment. For start it just use the following command:
+
+```
+python app.py cron
+```
+
+All the configuration are in the file `cron.conf` and the syntax is the same
+that [UNIX cron](https://apscheduler.readthedocs.io/en/latest/modules/triggers/cron.html?highlight=cron)
+but there is some some project specification, checkout the first line of the
+file who is a comment about his structure.
+
+Note 1: There is an id column, make sure all ids are different elsewhere the last
+task erase the previous one with the same id.
+
+Note 2: This is only implemented on the crawl function for the moment.
+
# Enjoy
For start searching send a `POST` request with the manticoresearch json API,