Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
How to switch deployment slot without any downtime
I implemented the swap for some web apps and noticed that it sometimes fails. Sometimes the swap works normally, but other times it fails, always generating the error below:
"Unexpected error when polling worker for change notification status: System.AggregateException: One or more errors occurred. ---> System.Threading.Tasks.TaskCanceledException: A task was canceled. --- End of inner exception stack trace --- at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at Microsoft.Web.Hosting.WorkerManagement.Client.LinuxWorkerManagementServiceClient.GetActiveConfigurationTimeStampForSite(String siteName) at Microsoft.Web.Hosting.Administration.Utilities.SiteWarmer.d__85.MoveNext() in C:__w\1\s\src\Hosting\AdministrationService\Microsoft.Web.Hosting.Administration\Utilities\SiteWarmer.cs
652 ---> (Inner Exception #0) System.Threading.Tasks.TaskCanceledException: A task was canceled.<---"
I would like to understand what could be causing this error, as I followed best practices for creating slots and performing the swap, and now I receive these errors which cause downtime in the application.