Does Azure start another instance of a scheduled web job if it is already running?

I have an Azure web job that is scheduled to run every 5 minutes using the cron expression in the settings.job file. If the process does not complete within 5 minutes, will Azure start another instance of the task, or will it wait for the end of the first completion?

I would like to make sure that he waits until the first one finishes, so he does not start several instances.

+4
source share
1 answer

When a scheduled website is launched, Azure places a lock file. This lock file will remain until the planned website is completed. If there is an attempt to start another scheduled task, you will get a ConflictException.

Here you can read the lock file here . And the code that checks if another job is working is here .

+5
source

Source: https://habr.com/ru/post/1674679/


All Articles