Check if a pod is idle

Hello, I am an admin for a team looking to start using runpod. I would like to be able to check whether a pod has been idle for a certain amount of time, with the intention of terminating it. What's the best way to do this?
7 Replies
justin
justin•12mo ago
just an old comment i had remembered maybe a place to look
justin
justin•12mo ago
but there is the runpod graphql specs to start / stop it forever usage u might want https://docs.runpod.io/docs/graphql-api
RunPod
GraphQL API
RunPod GraphQL API examples to manage your pods.
justin
justin•12mo ago
makes me wonder any reason why using pod vs serverless? serverless would be an on demand function call essentially depending what u need it for
muddyfootprints.
muddyfootprints.OP•12mo ago
I'm an admin of a research group. Each pod is an instance supporting active development rather than a node ready for deployment. Correct me if I'm wrong, but this doesn't feel like it fits the usecase for serverless.
justin
justin•12mo ago
I see makes sense. You are correct. Your best bet is that bash script then is my guess 🙂
muddyfootprints.
muddyfootprints.OP•12mo ago
Thanks for the help! I'll look into setting up a template w/ the bashscript in place
Want results from more Discord servers?
Add your server