gpt4 book ai didi

azure - 如果 Azure 计划 Web 作业仍在运行,是否已启动?

转载 作者:行者123 更新时间:2023-12-04 20:39:55 25 4
gpt4 key购买 nike

我有一个计划的 Azure WebJob,每 5 分钟运行一次。目前还不清楚如果运行时间为 10 分钟会发生什么。新的任务是否与仍在运行的任务并行启动,或者直到前一个任务完成后才开始?

最佳答案

来自这个答案What happens when a scheduled WebJob runs for a long time :

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 - 如果 Azure 计划 Web 作业仍在运行,是否已启动?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28172960/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com