R
RunPod•9mo ago
ChD

Question about graphql API

In https://doc.runpod.io/recipes/view-gpu-types-info If securePrice is zero does that mean that the resource is not available?
RunPod
No description
Solution:
@ChD That's correct - likely the A100 SXMs were all in use at the time that you ran the query, globally out of all specific GPU specs they're the most likely to go completely unavailable at the moment There are some now and it's showing the price for me: "id":"NVIDIA A100-SXM4-80GB","securePrice":2.29}...
Jump to solution
12 Replies
Solution
Finley
Finley•9mo ago
@ChD That's correct - likely the A100 SXMs were all in use at the time that you ran the query, globally out of all specific GPU specs they're the most likely to go completely unavailable at the moment There are some now and it's showing the price for me: "id":"NVIDIA A100-SXM4-80GB","securePrice":2.29}
ChD
ChDOP•9mo ago
Thanks ! Hi, is there a route to list pods?
ashleyk
ashleyk•9mo ago
There are no routes in GraphQL.
ashleyk
ashleyk•9mo ago
GitHub
runpod-api/runpod.py at main · ashleykleynhans/runpod-api
A collection of Python scripts for calling the RunPod GraphQL API - ashleykleynhans/runpod-api
ChD
ChDOP•9mo ago
you are awesome ! Its a amazing work Hello again, Is there a webhook system when creating a runpod to know when it is completely mounted?
ashleyk
ashleyk•9mo ago
No There are webhooks for serverless jobs only, not for GraphQL
ChD
ChDOP•9mo ago
Damn ! :p We're going to improvise 🙂 Hey, I'm currently looking for a way to configure a pod kill, it's possible, right? I think I saw this in the doc somewhere but I can't find where... to program an automatic “Terminate”
ashleyk
ashleyk•9mo ago
Yes, there is an example in my repo above.
ChD
ChDOP•9mo ago
ah, ok so I'll look there ::) damn I dont find it, is it in dockerArgs ?
ashleyk
ashleyk•9mo ago
You can use runpodctl
runpodctl remove pod $RUNPOD_POD_ID
runpodctl remove pod $RUNPOD_POD_ID
ChD
ChDOP•9mo ago
actually, I would like to start a runpod, and indicate that it will automatically finish in x hours
ashleyk
ashleyk•9mo ago
You can use sleep in conjunction with the command above in dockerArgs.
Want results from more Discord servers?
Add your server