How do i add cronjob in a pod?

I am using a pytorch image for my pod. I have cloned my repository and created an environment, as well as an app that is exposed on specific port. I only need to use this app for two hours per day, so when i want to use it, i manually start the pod, and after that, I manually stop it. I want to add something like cronjob, so that whenever i restart this pod, it will automatically run the specific commands and start my app
1 Reply
justin
justin8mo ago
You can't. Your best bet is to use their serverless service, and schedule a cronjob somewhere else to ping the api endpoint
Want results from more Discord servers?
Add your server