mattb512 commited on
Commit
a87320f
1 Parent(s): 4d27f4c

wait to controller

Browse files
Files changed (1) hide show
  1. startup.sh +8 -2
startup.sh CHANGED
@@ -13,9 +13,15 @@ python3 -c "import torch; \
13
  print(f\"device count = {torch.cuda.device_count()}\"); \
14
  print(f\"current device = {torch.cuda.current_device()}\")"
15
 
 
16
  echo "Starting serve.controller"
17
- python3 -m serve.controller --host 0.0.0.0 --port 10000 &
18
- P_CON=$!
 
 
 
 
 
19
 
20
  # sleep 30
21
 
 
13
  print(f\"device count = {torch.cuda.device_count()}\"); \
14
  print(f\"current device = {torch.cuda.current_device()}\")"
15
 
16
+
17
  echo "Starting serve.controller"
18
+ nohup python3 -m serve.controller 2>&1 | tee serve.controller.log &
19
+ while [ `grep -c "Uvicorn running on" serve.controller.log` -eq '0' ];do
20
+ sleep 1s;
21
+ echo "wait server running"
22
+ done
23
+ echo "serve.controller running"
24
+
25
 
26
  # sleep 30
27