We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47ac88 commit ac704b3Copy full SHA for ac704b3
2 files changed
infra/aggregation_mode/aggregation_mode_shutdown.sh
@@ -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
@@ -7,6 +7,7 @@ echo "Starting GPU Server..."
curl -X POST "$BASE_URL/instances/$INSTANCE_ID/start" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
- -H "Accept: application/json"
echo "GPU Server started successfully."
0 commit comments