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.
2 Replies
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.
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.