mehar5484
mehar5484
RRunPod
Created by mehar5484 on 4/6/2024 in #⛅|pods
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
3 replies
RRunPod
Created by mehar5484 on 3/13/2024 in #⚡|serverless
How do i restart worker automatically or using some script?
I have used this GitHub repository at https://github.com/runpod-workers/worker-template to implemet CI/CD. I'm encountering an error in the testing part, but for now, I'll overlook it. From what I understand of this code, it creates a Docker image and pushes it to Docker Hub. It also tests an already deployed model. However, when pushing a new image, the worker should restart as the current endpoint is using the old cached Docker image. How can I ensure that I get inference from the latest Docker image?
15 replies