Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
802ca26
1
Parent(s):
b92e3be
debug
Browse files- app.py +3 -2
- startup.sh +5 -2
app.py
CHANGED
@@ -49,9 +49,10 @@ try:
|
|
49 |
def runStartup():
|
50 |
logger.info("### Running startup.sh")
|
51 |
try:
|
52 |
-
subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
-
time.sleep(120)
|
|
|
55 |
except Exception as e:
|
56 |
emsg = str(e)
|
57 |
logger.ERROR(f"### subprocess.run EXCEPTION. e: {emsg}")
|
|
|
49 |
def runStartup():
|
50 |
logger.info("### Running startup.sh")
|
51 |
try:
|
52 |
+
#subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
+
#time.sleep(120)
|
55 |
+
subprocess.run(["/app/startup.sh"])
|
56 |
except Exception as e:
|
57 |
emsg = str(e)
|
58 |
logger.ERROR(f"### subprocess.run EXCEPTION. e: {emsg}")
|
startup.sh
CHANGED
@@ -41,7 +41,10 @@ export AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
|
41 |
MODULES_CLIENT_TIMEOUT=600s
|
42 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
43 |
|
44 |
-
echo "### Before
|
45 |
-
wait
|
|
|
|
|
|
|
46 |
|
47 |
|
|
|
41 |
MODULES_CLIENT_TIMEOUT=600s
|
42 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
43 |
|
44 |
+
echo "### Before sleep 120"
|
45 |
+
#wait
|
46 |
+
sleep 120
|
47 |
+
echo "### Returning from startup.sh"
|
48 |
+
|
49 |
|
50 |
|