wait to controller
Browse files- 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
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
|