Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @Vikas Singh
Thanks for reaching out with your question about Triggered Azure WebJobs and how the singleton behavior works.
Quick Explanation
By default, Triggered WebJobs (including scheduled ones) have is_singleton set to false. This means:
- The job always runs on one App Service instance (Azure selects it automatically).
- If a new trigger fires while the previous run is still executing, a second instance of the job can start in parallel on the same App Service instance.
If you want to prevent overlapping runs (i.e., ensure the next execution waits until the current one finishes), you can enable singleton mode.
Recommended Solution
Add or update a settings.job file in the root of your WebJob folder with the following content:
{
"schedule": "0 */5 * * * *",
"is_singleton": true
}
After adding this and redeploying the WebJob, runs will be serialized — the (n+1)th execution will wait for the nth one to complete.
This is usually the safer option for scheduled jobs to avoid race conditions or duplicate processing.
Reference :
https://learn.microsoft.com/en-us/azure/app-service/webjobs-execution?tabs=windowscode
https://learn.microsoft.com/en-us/azure/app-service/webjobs-create?tabs=windowscode
If the answer is helpful, Please do click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you