Skip to content

Commit ac704b3

Browse files
committed
chore: shutdown script
1 parent c47ac88 commit ac704b3

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
BASE_URL=https://dashboard.tensordock.com/api/v2
4+
5+
echo "Stopping GPU Server..."
6+
7+
sleep 120
8+
9+
curl -X POST "$BASE_URL/instances/$INSTANCE_ID/stop" \
10+
-H "Authorization: Bearer $API_KEY" \
11+
-H "Content-Type: application/json" \
12+
-H "Accept: application/json" \
13+
--max-time 60
14+
15+
echo "GPU Server stopped successfully."

infra/aggregation_mode/aggregation_mode_start.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ echo "Starting GPU Server..."
77
curl -X POST "$BASE_URL/instances/$INSTANCE_ID/start" \
88
-H "Authorization: Bearer $API_KEY" \
99
-H "Content-Type: application/json" \
10-
-H "Accept: application/json"
10+
-H "Accept: application/json" \
11+
--max-time 60
1112

1213
echo "GPU Server started successfully."

0 commit comments

Comments
 (0)