R
RunPod8mo ago
Shaiwe

Switch off pod after 2 hours

Hello, I'm new with runpod, It seems like I didn't turn off my pod and it used up all my credit. How can I protect myself against it?
6 Replies
nerdylive
nerdylive8mo ago
Oh sorry I didn't read your question through, I think you can set an external timer either from you pod or other services to hit the graphql API to terminate the pod Or from a certain trigger is also fine as long you can automate it with something that can hit this endpoint https://graphql-spec.runpod.io/#mutation-podStop https://graphql-spec.runpod.io/#mutation-podTerminate To this link ( the api for those ):
https://api.runpod.io/graphql?api_key=pewpew
https://api.runpod.io/graphql?api_key=pewpew
Shaiwe
ShaiweOP8mo ago
thanks, I think this will help me :poddy:
justin
justin8mo ago
GitHub
GitHub - kodxana/RunPod-FilleUploader: Web UI for easy file upload ...
Web UI for easy file upload to runpod pods. Contribute to kodxana/RunPod-FilleUploader development by creating an account on GitHub.
justin
justin8mo ago
Even though this says "file uploader" the dashboard has a UI to set a timer Runpodctl also has a remove command
justin
justin8mo ago
GitHub
runpodctl/docs/runpodctl_remove.md at main · runpod/runpodctl
🧰 | RunPod CLI for pod management. Contribute to runpod/runpodctl development by creating an account on GitHub.
justin
justin8mo ago
so you can do something like runpodctl remove <pod id> on some sort of timer and there some sort of env variable to do so
runpodctl remove pod $RUNPOD_POD_ID
runpodctl remove pod $RUNPOD_POD_ID
Want results from more Discord servers?
Add your server