如果前一个仍然是 运行,Azure Scheduled WebJob 是否已启动?
Is Azure Scheduled WebJob started if previous one is still running?
我有一个计划的 Azure WebJob,每 5 分钟运行一次。目前尚不清楚如果 运行 时间花费 10 分钟会发生什么。一个新的是与另一个并行开始的 运行,还是直到前一个结束才开始?
来自这个回答 :
As i understand it scheduled webjobs is just triggered webjobs that is run using Azure Scheduler, if you open Azure Scheduler in management portal you can see the webjobs and even configure them in more detail. (You can see the log too which would give you the simple answer to your question).
If you like to look at whats going on your scheduled webjob is run as a Triggered webjob by Kudu, if you look in the Kudu source you will see that a lockfile is created when a job is started, and if you try to start another job a ConflictException is thrown if there is already a lock file.
The Azure scheduler calls your job using a webhook that catches the ConflictException and gives you the "Error_WebJobAlreadyRunning" warning which will tell you: "Cannot start a new run since job is already running."
我有一个计划的 Azure WebJob,每 5 分钟运行一次。目前尚不清楚如果 运行 时间花费 10 分钟会发生什么。一个新的是与另一个并行开始的 运行,还是直到前一个结束才开始?
来自这个回答
As i understand it scheduled webjobs is just triggered webjobs that is run using Azure Scheduler, if you open Azure Scheduler in management portal you can see the webjobs and even configure them in more detail. (You can see the log too which would give you the simple answer to your question).
If you like to look at whats going on your scheduled webjob is run as a Triggered webjob by Kudu, if you look in the Kudu source you will see that a lockfile is created when a job is started, and if you try to start another job a ConflictException is thrown if there is already a lock file.
The Azure scheduler calls your job using a webhook that catches the ConflictException and gives you the "Error_WebJobAlreadyRunning" warning which will tell you: "Cannot start a new run since job is already running."