R
RunPod•4mo 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•4mo 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
ChD•4mo ago
Thanks ! Hi, is there a route to list pods?
ashleyk
ashleyk•4mo ago
There are no routes in GraphQL.
ashleyk
ashleyk•4mo 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
ChD•4mo 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•4mo ago
No There are webhooks for serverless jobs only, not for GraphQL
ChD
ChD•4mo 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•4mo ago
Yes, there is an example in my repo above.
ChD
ChD•4mo ago
ah, ok so I'll look there ::) damn I dont find it, is it in dockerArgs ?
ashleyk
ashleyk•4mo ago
You can use runpodctl
runpodctl remove pod $RUNPOD_POD_ID
runpodctl remove pod $RUNPOD_POD_ID
ChD
ChD•4mo ago
actually, I would like to start a runpod, and indicate that it will automatically finish in x hours
ashleyk
ashleyk•4mo ago
You can use sleep in conjunction with the command above in dockerArgs.