运行没有排队的Azure WebJob [英] Running Azure WebJob without queue

查看:166
本文介绍了运行没有排队的Azure WebJob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法来安排工作,而不必听的队列?我的意思是,我想运行它每隔一小时左右,做一些事情,不管队列。确实,即使是有意义吗?
一个解决方案,我能想到的是在每个任务完成时间排队的消息本身,但是,这并不像一个干净的解决方案给我。

Is there a way to schedule a job without having listen to the queue? I mean I would like to run it every hour or so and do something, regardless of the queue. Does that even make sense? One solution I can think of is to queue a message to itself each time the job is done, but that doesn't look like a clean solution to me.

推荐答案

用了1个小时的频率创建计划任务,并使用Host.Call要调用的函数。请参阅<一对 ManualTrigger 功能href=\"https://github.com/Azure/azure-webjobs-sdk-samples/blob/master/BasicSamples/TableOperations/Program.cs\"相对=nofollow>这code样品

Create a scheduled job with a 1 hour frequency and use Host.Call to invoke the function. See the ManualTrigger function in this code sample

这篇关于运行没有排队的Azure WebJob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆