R
RunPod8mo ago
fireice

When update handler.py using "runpodctl project deploy", Old worker does not auto update handler

Although handler.py in deploy directory in volume has updated, but if I use run to test, the old worker(has been run before)will still output "world",not "world-2". I have to remove the old worker, and then click 'run' again for the new worker to output correctly.
No description
No description
No description
No description
2 Replies
digigoblin
digigoblin8mo ago
Probably flash boot is enabled. I have to scale workers down to zero and back up again to prevent this kind of thing from happening.
fireice
fireiceOP8mo ago
Your translation is correct, but in a production environment, doing so might not feel quite right. Jobs that are currently using the old worker may be interrupted, which could lead to a poor user experience for the app.
Want results from more Discord servers?
Add your server