What happens on database level when server is shut down.
Hi I'm currently working on an application and we noticed that when the server is shut down and there are active sessions, entities created in that session are rolled back. Can someone describe to me how I can control what happens when the server is being shut down? I mean can i prevent this deletion behavior in a before rollback microflow? Or is there no way to stop this from happening?
AFAIK you can enable a 'before shutdown' microflow which will be executed before the server shuts down.
Not sure if this is what you're looking for, but it might get you somewhere!
The rollback is most likely due to the fact that the transactions could not be finished, therefore if you don't rollback it would possibly create corrupt data. The only method to prevent this is to inform all of your users to logout well before the server goes down for maintenance.