Azure Webjob触发两次

编程入门 行业动态 更新时间:2024-10-24 14:21:17
本文介绍了Azure Webjob触发两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

由于某些问题,我决定在部署webjobs时使用计划的触发器.

I used to use a scheduled trigger when deploying my webjobs, due to some problems I decided to use the settings.job with the onDemand trigger.

我的azure门户仅显示1个Web作业,但是在日志中我看到它每次运行两次.

My azure portal shows only 1 web job occurence, but in the log I can see it runs twice every time.

在我的 echtemaaltijd.scm.azurewebsites/api/webjobs页面,我看到每个webjob一个实例,当我查看调度程序日志URL时,我也看到它仅被触发一次.

In my echtemaaltijd.scm.azurewebsites/api/webjobs page, I see one instance per webjob, when I look at the scheduler log urls, I also see it's triggered only once.

为防止触发两次,我清除了设置时间表属性,因此只触发了一次. (这是上面两个Webjob的url中的当前情况)

To prevent from triggering twice, I cleared the settings schedule property, and as a result its triggered only once. (That is the current situation in above url for two webjobs)

以某种方式仍在触发旧的"计划Web作业,并且我不知道为什么会发生这种情况以及如何删除这些计划程序.

Somehow the "old" schedule webjob is still triggering, and I don't know why this happened and how I can delete these schedulers.

推荐答案

我认为您需要禁用/删除仍在运行中并正在调用WebJob的旧Azure Scheduler作业.您可以在此博客中找到更多详细信息.门户,以及Azure Scheduler/WebJobs的总体交互方式.停止Azure Scheduler作业后,就可以使用settings.job计划.

I think you need to go disable/delete your old Azure Scheduler Job that is still running invoking your WebJob. You can find more details in this blog on how to find that in the portal, and how Azure Scheduler / WebJobs interact in general. Once you stop the Azure Scheduler Job, you'll be able to use your settings.job schedule.

更多推荐

Azure Webjob触发两次

本文发布于:2023-11-27 13:01:52,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638187.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两次   Azure   Webjob

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!