MVPilgrim commited on
Commit
1eb1fc6
·
1 Parent(s): 66f9d68
Files changed (2) hide show
  1. app.py +3 -3
  2. startup.sh +4 -2
app.py CHANGED
@@ -49,10 +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
- subprocess.run(["/app/startup.sh"])
56
  except Exception as e:
57
  emsg = str(e)
58
  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
@@ -43,9 +43,11 @@ export AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED=true \
43
  MODULES_CLIENT_TIMEOUT=600s
44
  /app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
45
 
46
- echo "### Before sleep 120"
47
  #wait
48
- sleep 120
 
 
49
  echo "### Returning from startup.sh"
50
 
51
 
 
43
  MODULES_CLIENT_TIMEOUT=600s
44
  /app/weaviate/weaviate --host 127.0.0.1 --port 8080 --scheme http --write-timeout 600s &
45
 
46
+ #echo "### Before sleep 120"
47
  #wait
48
+ #sleep 120
49
+
50
+ ps -ef
51
  echo "### Returning from startup.sh"
52
 
53