Skip to content

Commit 2891ca6

Browse files
committed
Add docs
1 parent 5d7bc1f commit 2891ca6

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ These are read once, when tika/tika.py is initially loaded and used throughout a
4747
10. `TIKA_STARTUP_SLEEP` - number of seconds (`float`) to wait per check if Tika server is launched at runtime
4848
11. `TIKA_STARTUP_MAX_RETRY` - number of checks (`int`) to attempt for Tika server startup if launched at runtime
4949
12. `TIKA_JAVA_ARGS` - set java runtime arguments, e.g, `-Xmx4g`
50+
5051
Testing it out
5152
==============
5253

tika/tika.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ def startServer(tikaServerJar, java_path = TikaJava, java_args = TikaJavaArgs, s
687687
return True
688688

689689
def killServer():
690+
'''
691+
Kills the tika server started by the current execution instance
692+
'''
690693
if(TikaServerProcess):
691694
os.killpg(os.getpgid(TikaServerProcess.pid), signal.SIGTERM)
692695
time.sleep(1)

0 commit comments

Comments
 (0)