Routines not working consistantly

It might be related to the following known issue, which is a database problem where commands are timing out. It’s only affecting some people some of the time, and engineering is aware of it, but it could be causing the problems you’re seeing. You should definitely report it to support if you haven’t already.