Skip to content

Commit c47ac88

Browse files
committed
feat: update startup script
1 parent 6ebc9f6 commit c47ac88

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
API_KEY=<TensorDock_API_KEY>
1+
API_KEY=<TensorDock_API_KEY>
2+
INSTANCE_ID=<INSTANCE_ID>

infra/aggregation_mode/aggregation_mode_start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ BASE_URL=https://dashboard.tensordock.com/api/v2
44

55
echo "Starting GPU Server..."
66

7-
curl -X GET "$BASE_URL/instances" \
7+
curl -X POST "$BASE_URL/instances/$INSTANCE_ID/start" \
88
-H "Authorization: Bearer $API_KEY" \
99
-H "Content-Type: application/json" \
1010
-H "Accept: application/json"

infra/aggregation_mode/aggregation_mode_start.timer

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Requires=aggregation_mode_start.service
55
[Timer]
66
Unit=aggregation_mode_start.service
77
AccuracySec=1s
8-
OnBootSec=0
9-
OnUnitActiveSec=2min
8+
OnCalendar=16:55
109

1110
[Install]
1211
WantedBy=timers.target

0 commit comments

Comments
 (0)