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
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 ):
thanks, I think this will help me :poddy:
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.
Even though this says "file uploader" the dashboard has a UI to set a timer
Runpodctl also has a remove command
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.
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