Closed GermanCoca closed 4 months ago
Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure: https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano Azure App Service
Repro steps.
Yes
VSBuild 15.0
When deploying our Webjob solution to the staging environment, we observe from the Kudu logs that the singleton locks are not being released for timer triggers. This in turn result in multiple errors "Unable to acquire Singleton lock" when these Webjobs are initialized again.
This deployment is done in Azure Pipelines. To avoid dll locks that resulted in deployment failures, we are:
From Webjobs SDK issues we found that these errors could be caused by hard shutdowns of the Webjobs, and from the Kudu documentation that the restarting of the Web App could be the culprit. However, from the Kudu logs we observe that when performing the shutdown the Webjobs are gracefully stopped.
The log/error given by the failure.
As a consequence, we have to manually break the leases in
azure-webjobs-hosts/locks/staging
. Any info on why these errors could be happening?