Would a Galaxy deploy interrupt a server execution

I’m hosting a small instance on Galaxy (512mb ram) and my instance is running at 40% ram fairly constantly.

I normally deploy during uptime when users are busy which causes their session to refresh. Which is fine for now but I noticed that a server execution did not complete while adding users to a group. I know this because I can see in the data that the function stopped half way through.

So I’m thinking that this could be because of a server reset due to memory overload which I saw once ( Is there a notification on galaxy for this ? ) or it could be because I deploy while people are on the app, and that caused the reset to interrupt the function execution.

Any advice on this?