@Shivendra Singh Thank you for your question regarding how to avoid your production slot from restarting when making deployments to your staging slot. We apologize for the frustration you have encountered with this setup.
By design, the production slot should not be restarting when making deployments to the staging slot. As long as you do not have auto swap on and have not gone ahead and swapped staging and production, this would be an unexpected behavior.
You mention that you are writing lots of data to local storage on the web app via your Excel/Celery setup. Without seeing your logs, we wonder if this is causing storage failovers, which do cause the web app to restart. One way to hopefully reduce this is to set an app setting.
- Navigate to the configuration blade in your web app in the Azure portal
- Under Application Settings place WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG=1
- Place this app setting on ALL of your slots. (Note this setting does not work with WCF)
Please report back to us with the results. We look forward to your update.