Cloud code function reliability

I am busy moving parse code from my ios app to cloud code functions into the main.js. When modifying main.js and redeploying it to the cloud, I have noticed that after several deployments overwriting main.js, functions that worked do not work anymore. The question is to know if the parse server locks after several deployments. I am worried because without knowing the reasons why it behaves this way, my app might end up not working properly

I am getting this message in log:
(node:19) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

There is no limitation in terms of deployment. Maybe something that you changed is breaking the functions that were working before.

I will keep on checking thanks for help; I would like to move parse CRUD to cloud code

Check for your logs on Parse Server initialization. It might give you some clue.