Skip to content

Commit 4c9856c

Browse files
committed
chore: disassociate resources
1 parent 467d39e commit 4c9856c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

infra/aggregation_mode/aggregation_mode.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Type=oneshot
77
WorkingDirectory=/home/user
88
ExecStartPre=sleep 60
99
ExecStart=/home/user/.cargo/bin/proof_aggregator /home/user/config/config-proof-aggregator.yaml
10-
ExecStartPost=/home/user/repos/aggregation_mode/aligned_layer/infra/aggregation_mode/aggregation_mode_shutdown.sh
10+
ExecStartPost=/home/user/repos/proof_aggregation/aligned_layer/infra/aggregation_mode/aggregation_mode_shutdown.sh
1111
RemainAfterExit=yes
1212
Environment="SP1_PROVER=cuda"
1313
EnvironmentFile=/home/app/config/.env.aggregation_mode_shutdown

infra/aggregation_mode/aggregation_mode_shutdown.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ echo "Stopping GPU Server..."
66

77
sleep 120
88

9-
curl -X POST "$BASE_URL/instances/$INSTANCE_ID/stop" \
10-
-H "Authorization: Bearer $API_KEY" \
9+
curl -X POST "https://dashboard.tensordock.com/api/v2/instances/41ef030d-22f2-4e5e-852e-cb21982271c0/stop" \
10+
-H "Authorization: Bearer fwf7iWW3PEQXqUTFGPJvlmQ8lny3MIUg" \
1111
-H "Content-Type: application/json" \
1212
-H "Accept: application/json" \
13+
--data-urlencode 'disassociate_resources=true' \
1314
--max-time 60
1415

1516
echo "GPU Server stopped successfully."

0 commit comments

Comments
 (0)