R
RunPod11mo ago
wmute

Custom template: update environment variables?

I have configured environment variables in my custom endpoint template. When I edit the template to change their contents, the workers still seem to be using the old ENV values. What ultimately works is removing and recreating the whole endpoint, but I don't want to do that repeatedly. I've tried triggering a refresh using the "Create new release" functionality but it didn't seem to help. What is the recommended way of making sure that the workers are using the latest environment variables from the template?
Solution:
Scale workers down to zero and back up again for environment variable changes to take effect
Jump to solution
2 Replies
Solution
ashleyk
ashleyk11mo ago
Scale workers down to zero and back up again for environment variable changes to take effect
wmute
wmuteOP11mo ago
thanks, that worked
Want results from more Discord servers?
Add your server