Check your other script is also running or not?
I found this strange behavior in V11 where custom script stopped working.
Fixed it via migrating environment to python3 again and resetting production environment.
bench setup socketio
bench build
bench clear-cache