Spaces:
Running
Running
MVPilgrim
commited on
Commit
·
a641b1d
1
Parent(s):
a0242c0
debug
Browse files- app.py +2 -2
- startup.sh +4 -4
app.py
CHANGED
@@ -51,8 +51,8 @@ try:
|
|
51 |
try:
|
52 |
subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
-
time.sleep(
|
55 |
-
subprocess.run(["bash -c ps -ef"])
|
56 |
except Exception as e:
|
57 |
emsg = str(e)
|
58 |
logger.error(f"### subprocess.run EXCEPTION. e: {emsg}")
|
|
|
51 |
try:
|
52 |
subprocess.Popen(["/app/startup.sh"])
|
53 |
# Wait for text2vec-transformers and Weaviate DB to initialize.
|
54 |
+
time.sleep(180)
|
55 |
+
subprocess.run(["/bin/bash -c ps -ef"])
|
56 |
except Exception as e:
|
57 |
emsg = str(e)
|
58 |
logger.error(f"### subprocess.run EXCEPTION. e: {emsg}")
|
startup.sh
CHANGED
@@ -45,12 +45,12 @@ export AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
|
|
45 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
46 |
echo "### After Weaviate DB start. RC=$?"
|
47 |
|
48 |
-
echo "### Before sleep 120"
|
49 |
-
#
|
50 |
-
sleep 120
|
51 |
|
|
|
52 |
ps -ef
|
53 |
-
|
54 |
|
55 |
|
56 |
|
|
|
45 |
/app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
|
46 |
echo "### After Weaviate DB start. RC=$?"
|
47 |
|
48 |
+
#echo "### Before sleep 120"
|
49 |
+
#sleep 120
|
|
|
50 |
|
51 |
+
echo "### Before sleep 120 then wait."
|
52 |
ps -ef
|
53 |
+
wait
|
54 |
|
55 |
|
56 |
|