-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Marqo settings schema at startup (#730)
* Create Marqo settings schema in on-start script * Flush welcome message right away * Terminate API process for SIGINT and SIGTERM
- Loading branch information
Showing
8 changed files
with
167 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
echo "stopping marqo..." | ||
redis-cli shutdown 2>/dev/null || true | ||
/opt/vespa/bin/vespa-stop-services >/dev/null 2>&1 | ||
echo "Stopping Marqo..." | ||
kill -SIGINT $api_pid >/dev/null 2>&1 || true | ||
redis-cli shutdown >/dev/null 2>&1 || true | ||
/opt/vespa/bin/vespa-stop-services >/dev/null 2>&1 || true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import marqo.version | ||
|
||
version = marqo.version.__version__ | ||
base_url = 'https://docs.marqo.ai' | ||
|
||
|
||
def _build_url(path): | ||
return f'{base_url}/{version}/{path}' | ||
|
||
|
||
def configuring_marqo(): | ||
return _build_url('Guides/Advanced-Usage/configuration/') | ||
|
||
|
||
def create_index(): | ||
return _build_url('API-Reference/Indexes/create_index/') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.